Cleanup the transaction memos

This commit is contained in:
Nabeel Shahzad
2018-03-06 06:17:45 -06:00
parent 9d3953f3ac
commit 453ca5b180
8 changed files with 53 additions and 34 deletions

View File

@@ -1,9 +1,13 @@
@foreach($transaction_groups as $group)
<h4>{!! $group['airline']->icao !!} - {!! $group['airline']->name !!}</h4>
<h3>{!! $group['airline']->icao !!} - {!! $group['airline']->name !!}</h3>
<table
id="finances-table"
style="width: 95%; margin: 0px auto;"
class="table table-hover table-responsive">
<table class="table table-hover table-responsive" id="finances-table">
<thead>
<th>Expenses</th>
<th>Credit</th>
@@ -18,15 +22,11 @@
<td>
@if($ta->sum_credits)
{!! money($ta->sum_credits, $ta->currency) !!}
@else
-
@endif
</td>
<td>
@if($ta->sum_debits)
<i>{!! money($ta->sum_debits, $ta->currency) !!}</i>
@else
-
@endif
</td>
</tr>
@@ -39,14 +39,16 @@
{!! $group['credits'] !!}
</td>
<td>
({!! $group['debits'] !!})
<i>{!! $group['debits'] !!}</i>
</td>
</tr>
{{-- final total --}}
<tr style="border-top: 3px; border-top-style: double;">
<td></td>
<td><b>Total</b></td>
<td align="right">
<b>Total</b>
</td>
<td>
{!! $group['credits']->subtract($group['debits']) !!}
</td>