v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View 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>

View 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>

View 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>