12 lines
639 B
PHP
Raw Normal View History

2019-11-16 10:21:14 +03:00
<tfoot>
2020-03-10 14:54:20 +03:00
<tr class="row rp-border-top-1 font-size-unset px-3 mb-3">
<th class="{{ $class->column_name_width }} text-uppercase">{{ trans_choice('general.totals', 1) }}</th>
2020-01-27 22:41:08 +03:00
@php $grand_total = 0; @endphp
@foreach($class->footer_totals[$table] as $date => $total)
@php $grand_total += $total; @endphp
2020-03-10 14:54:20 +03:00
<th class="{{ $class->column_value_width }} text-right px-0">@money($total, setting('default.currency'), true)</th>
2019-11-28 11:18:58 +03:00
@endforeach
2020-03-10 17:42:13 +03:00
<th class="{{ $class->column_name_width }} text-right pl-0 pr-4">@money($grand_total, setting('default.currency'), true)</th>
2019-11-16 10:21:14 +03:00
</tr>
</tfoot>