akaunting 3.0 (the last dance)
This commit is contained in:
		@@ -1,25 +1,21 @@
 | 
			
		||||
@php
 | 
			
		||||
foreach ($class->footer_totals as $table => $dates) {
 | 
			
		||||
    foreach ($dates as $date => $total) {
 | 
			
		||||
        if (!isset($class->net_profit[$date])) {
 | 
			
		||||
            $class->net_profit[$date] = 0;
 | 
			
		||||
        }
 | 
			
		||||
<div class="overflow-x-visible mb-8">
 | 
			
		||||
    <table class="w-full rp-border-collapse">
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td class="{{ $class->column_name_width }} ltr:text-left rtl:text-right text-black-400 uppercase font-bold">
 | 
			
		||||
                    {{ trans('reports.net_profit') }}
 | 
			
		||||
                </td>
 | 
			
		||||
 | 
			
		||||
        $class->net_profit[$date] += $total;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@endphp
 | 
			
		||||
 | 
			
		||||
<div class="table-responsive my-2">
 | 
			
		||||
    <table class="table table-hover align-items-center rp-border-collapse">
 | 
			
		||||
        <tfoot class="border-top-style">
 | 
			
		||||
            <tr class="row rp-border-top-1 font-size-unset px-3">
 | 
			
		||||
                <th class="{{ $class->column_name_width }} text-uppercase text-left border-top-0">{{ trans('reports.net_profit') }}</th>
 | 
			
		||||
                @foreach($class->net_profit as $profit)
 | 
			
		||||
                    <th class="{{ $class->column_value_width }} text-right px-0 border-top-0">@money($profit, setting('default.currency'), true)</th>
 | 
			
		||||
                <td class="{{ $class->column_value_width }} ltr:text-right rtl:text-left text-black-400 font-medium text-xs print-alignment">
 | 
			
		||||
                    <x-money :amount="$profit" :currency="default_currency()" convert />
 | 
			
		||||
                </td>
 | 
			
		||||
                @endforeach
 | 
			
		||||
                <th class="{{ $class->column_name_width }} text-right pl-0 pr-4 border-top-0">@money(array_sum($class->net_profit), setting('default.currency'), true)</th>
 | 
			
		||||
 | 
			
		||||
                <td class="{{ $class->column_name_width }} ltr:text-right rtl:text-left text-black-400 font-medium text-xs print-alignment">
 | 
			
		||||
                    <x-money :amount="array_sum($class->net_profit)" :currency="default_currency()" convert />
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tfoot>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user