20 lines
781 B
PHP
Raw Permalink Normal View History

2022-06-01 10:15:55 +03:00
@php $grand_total = array_sum($class->footer_totals[$table_key]); @endphp
2020-06-06 14:32:44 +03:00
2019-11-16 10:21:14 +03:00
<tfoot>
2022-06-01 10:15:55 +03:00
<tr>
<td class="{{ $class->column_name_width }} w-24 py-4 ltr:text-left rtl:text-right text-black-400 font-bold uppercase">
2022-06-01 10:15:55 +03:00
{{ trans_choice('general.totals', 1) }}
</td>
@foreach($class->footer_totals[$table_key] as $total)
<td class="{{ $class->column_value_width }} py-4 ltr:text-right rtl:text-left text-black-400 font-medium text-xs print-alignment">
2023-07-11 12:17:01 +03:00
<x-money :amount="$total" />
2022-06-01 10:15:55 +03:00
</td>
2020-06-06 14:32:44 +03:00
@endforeach
2022-06-01 10:15:55 +03:00
<td class="{{ $class->column_name_width }} py-4 ltr:text-right rtl:text-left text-black-400 font-medium text-xs print-alignment">
2023-07-11 12:17:01 +03:00
<x-money :amount="$grand_total" />
2022-06-01 10:15:55 +03:00
</td>
2020-06-06 14:32:44 +03:00
</tr>
2019-11-16 10:21:14 +03:00
</tfoot>