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,9 +4,9 @@
<tr>
<th class="long-texts report-column">{{ trans('reports.net_profit') }}</th>
@foreach($class->net_profit as $profit)
<th class="long-texts report-column">@money($profit, setting('default.currency'), true)</th>
<th class="long-texts report-column text-right">@money($profit, setting('default.currency'), true)</th>
@endforeach
<th class="long-texts report-column">
<th class="long-texts report-column text-right">
@money(array_sum($class->net_profit), setting('default.currency'), true)
</th>
</tr>

View File

@ -2,11 +2,11 @@
<table class="table align-items-center">
<thead class="border-top-style">
<tr>
<th class="long-texts report-column"></th>
<th class="long-texts report-column text-center"></th>
@foreach($class->dates as $date)
<th class="long-texts report-column">{{ $date }}</th>
<th class="long-texts report-column text-center">{{ $date }}</th>
@endforeach
<th class="long-texts report-column">
<th class="long-texts report-column text-right">
<h5>{{ trans_choice('general.totals', 1) }}</h5>
</th>
</tr>

View File

@ -4,8 +4,8 @@
@php $total_total = 0; @endphp
@foreach($class->totals[$table] as $date => $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

@ -2,11 +2,11 @@
<table class="table align-items-center">
<thead class="border-top-style">
<tr>
<th class="long-texts report-column"></th>
<th class="long-texts report-column text-center"></th>
@foreach($class->dates as $date)
<th class="long-texts report-column">{{ $date }}</th>
<th class="long-texts report-column text-center">{{ $date }}</th>
@endforeach
<th class="long-texts report-column">
<th class="long-texts report-column text-right">
<h5>{{ trans_choice('general.totals', 1) }}</h5>
</th>
</tr>

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>