Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7123 additions and 7006 deletions

View File

@@ -1,45 +1,45 @@
<div class="col-12">
@if(count($journal['transactions']) > 0)
@if(count($journal['transactions']) > 0)
<table class="table table-hover" id="users-table">
<tbody>
@foreach($journal['transactions'] as $entry)
<tr>
<td>{{ $entry->memo }}</td>
<td>
@if($entry->credit)
{{ money($entry->credit, config('phpvms.currency')) }}
@endif
</td>
<td>
@if($entry->debit)
{{ money($entry->debit, config('phpvms.currency')) }}
@endif
</td>
</tr>
@endforeach
{{-- show sums --}}
<tbody>
@foreach($journal['transactions'] as $entry)
<tr>
<td></td>
<td>
{{ $journal['credits'] }}
</td>
<td>
<i>{{ $journal['debits'] }}</i>
</td>
<td>{{ $entry->memo }}</td>
<td>
@if($entry->credit)
{{ money($entry->credit, config('phpvms.currency')) }}
@endif
</td>
<td>
@if($entry->debit)
{{ money($entry->debit, config('phpvms.currency')) }}
@endif
</td>
</tr>
@endforeach
{{-- final total --}}
<tr style="border-top: 3px; border-top-style: double;">
<td></td>
<td align="right">
<b>Total</b>
</td>
<td>
{{ $journal['credits']->subtract($journal['debits']) }}
</td>
</tr>
</tbody>
{{-- show sums --}}
<tr>
<td></td>
<td>
{{ $journal['credits'] }}
</td>
<td>
<i>{{ $journal['debits'] }}</i>
</td>
</tr>
{{-- final total --}}
<tr style="border-top: 3px; border-top-style: double;">
<td></td>
<td align="right">
<b>Total</b>
</td>
<td>
{{ $journal['credits']->subtract($journal['debits']) }}
</td>
</tr>
</tbody>
</table>
</div>
@endif