money alignment is updated

This commit is contained in:
batuhanbas
2020-01-13 16:26:41 +03:00
parent 24dcd4997b
commit e8db1cf1a4
9 changed files with 20 additions and 20 deletions

View File

@ -4,8 +4,8 @@
@php $total_total = 0; @endphp
@foreach($class->totals[$table] as $total)
@php $total_total += $total; @endphp
<th class="long-texts report-column">@money($total, setting('default.currency'), true)</th>
<th class="long-texts report-column text-right">@money($total, setting('default.currency'), true)</th>
@endforeach
<th class="long-texts report-column">@money($total_total, setting('default.currency'), true)</th>
<th class="long-texts report-column text-right">@money($total_total, setting('default.currency'), true)</th>
</tr>
</tfoot>

View File

@ -3,11 +3,11 @@
@if ($table == 'default')
<th>{{ $class->groups[$class->report->group] }}</th>
@else
<th class="text-right pl-0">{{ $table }}</th>
<th class="text-center">{{ $table }}</th>
@endif
@foreach($class->dates as $date)
<th class="text-right pl-0">{{ $date }}</th>
<th class="text-center">{{ $date }}</th>
@endforeach
<th class="text-right pl-0">{{ trans_choice('general.totals', 1) }}</th>
<th class="text-center">{{ trans_choice('general.totals', 1) }}</th>
</tr>
</thead>

View File

@ -3,7 +3,7 @@
<td class="long-texts report-column">{{ $class->getTableRowList()[$id] }}</td>
@foreach($items as $item)
@php $row_total += $item; @endphp
<td class="long-texts report-column">@money($item, setting('default.currency'), true)</td>
<td class="long-texts report-column text-right">@money($item, setting('default.currency'), true)</td>
@endforeach
<td class="long-texts report-column">@money($row_total, setting('default.currency'), true)</td>
<td class="long-texts report-column text-right">@money($row_total, setting('default.currency'), true)</td>
</tr>