v2 first commit
This commit is contained in:
11
resources/views/partials/reports/table/footer.blade.php
Normal file
11
resources/views/partials/reports/table/footer.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ trans_choice('general.totals', 1) }}</th>
|
||||
@php $total_total = 0; @endphp
|
||||
@foreach($class->totals[$table] as $total)
|
||||
@php $total_total += $total; @endphp
|
||||
<th class="text-right pl-0">@money($total, setting('default.currency'), true)</th>
|
||||
@endforeach
|
||||
<th class="text-right pl-0">@money($total_total, setting('default.currency'), true)</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
13
resources/views/partials/reports/table/header.blade.php
Normal file
13
resources/views/partials/reports/table/header.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
@if ($table == 'default')
|
||||
<th>{{ $class->groups[$class->report->group] }}</th>
|
||||
@else
|
||||
<th class="text-right pl-0">{{ $table }}</th>
|
||||
@endif
|
||||
@foreach($class->dates as $date)
|
||||
<th class="text-right pl-0">{{ $date }}</th>
|
||||
@endforeach
|
||||
<th class="text-right pl-0">{{ trans_choice('general.totals', 1) }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
9
resources/views/partials/reports/table/rows.blade.php
Normal file
9
resources/views/partials/reports/table/rows.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
@php $row_total = 0; @endphp
|
||||
<tr>
|
||||
<td>{{ $class->getTableRowList()[$id] }}</td>
|
||||
@foreach($items as $item)
|
||||
@php $row_total += $item; @endphp
|
||||
<td class="text-right pl-0">@money($item, setting('default.currency'), true)</td>
|
||||
@endforeach
|
||||
<th class="text-right pl-0">@money($row_total, setting('default.currency'), true)</th>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user