improved reports layout
This commit is contained in:
parent
2f98696caf
commit
567a2ddbd5
@ -1,11 +1,11 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column">{{ trans_choice('general.totals', 1) }}</th>
|
<th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $total)
|
@foreach($class->totals[$table] as $total)
|
||||||
@php $total_total += $total; @endphp
|
@php $total_total += $total; @endphp
|
||||||
<th class="long-texts report-column text-right">@money($total, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
@if ($table == 'default')
|
@if ($table == 'default')
|
||||||
<th>{{ $class->groups[$class->report->group] }}</th>
|
<th>{{ $class->groups[$class->report->group] }}</th>
|
||||||
@else
|
@else
|
||||||
<th class="text-right">{{ $table }}</th>
|
<th>{{ $table }}</th>
|
||||||
@endif
|
@endif
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="text-right">{{ $date }}</th>
|
<th class="text-right px-0">{{ $date }}</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="text-right">{{ trans_choice('general.totals', 1) }}</th>
|
<th class="text-right">{{ trans_choice('general.totals', 1) }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@php $row_total = 0; @endphp
|
@php $row_total = 0; @endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td class="long-texts report-column">{{ $class->getTableRowList()[$id] }}</td>
|
<td class="report-column">{{ $class->getTableRowList()[$id] }}</td>
|
||||||
@foreach($items as $item)
|
@foreach($items as $item)
|
||||||
@php $row_total += $item; @endphp
|
@php $row_total += $item; @endphp
|
||||||
<td class="long-texts report-column text-right">@money($item, setting('default.currency'), true)</td>
|
<td class="report-column text-right px-0">@money($item, setting('default.currency'), true)</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
<td class="long-texts report-column text-right">@money($row_total, setting('default.currency'), true)</td>
|
<td class="report-column text-right">@money($row_total, setting('default.currency'), true)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<table class="table align-items-center">
|
<table class="table align-items-center">
|
||||||
<tfoot class="border-top-style">
|
<tfoot class="border-top-style">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column">{{ trans('reports.net_profit') }}</th>
|
<th class="report-column">{{ trans('reports.net_profit') }}</th>
|
||||||
@foreach($class->net_profit as $profit)
|
@foreach($class->net_profit as $profit)
|
||||||
<th class="long-texts report-column text-right">@money($profit, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($profit, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">
|
<th class="report-column text-right">
|
||||||
@money(array_sum($class->net_profit), setting('default.currency'), true)
|
@money(array_sum($class->net_profit), setting('default.currency'), true)
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<table class="table align-items-center">
|
<table class="table align-items-center">
|
||||||
<thead class="border-top-style">
|
<thead class="border-top-style">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column text-right"></th>
|
<th class="report-column text-right"></th>
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="long-texts report-column text-right">{{ $date }}</th>
|
<th class="report-column text-right px-0">{{ $date }}</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">
|
<th class="report-column text-right">
|
||||||
<h5>{{ trans_choice('general.totals', 1) }}</h5>
|
{{ trans_choice('general.totals', 1) }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column">{{ trans_choice('general.totals', 1) }}</th>
|
<th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $date => $total)
|
@foreach($class->totals[$table] as $date => $total)
|
||||||
@php $total_total += $total; @endphp
|
@php $total_total += $total; @endphp
|
||||||
<th class="long-texts report-column text-right">@money($total, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<table class="table align-items-center">
|
<table class="table align-items-center">
|
||||||
<thead class="border-top-style">
|
<thead class="border-top-style">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column text-right"></th>
|
<th class="report-column text-right"></th>
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="long-texts report-column text-right">{{ $date }}</th>
|
<th class="report-column text-right px-0">{{ $date }}</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">
|
<th class="report-column text-right">
|
||||||
<h5>{{ trans_choice('general.totals', 1) }}</h5>
|
<h5>{{ trans_choice('general.totals', 1) }}</h5>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="long-texts report-column">{{ trans('reports.net') }}</th>
|
<th class="report-column">{{ trans('reports.net') }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $total)
|
@foreach($class->totals[$table] as $total)
|
||||||
@php $total_total += $total; @endphp
|
@php $total_total += $total; @endphp
|
||||||
<th class="long-texts report-column text-right">@money($total, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="long-texts report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user