EMPIRE DEVELOPMENTS
BANK ACCOUNTS BALANCES
@foreach ($model['model'] as $data)
@if (isset($data->projectname))
|
{{ $data->projectname }}
|
{{ now()->format('d-m-Y') }}
|
{{ now()->subDay()->format('d-m-Y') }}
|
|
|
Balance Amount
|
Balance Amount
|
@php
$grandTodayBalance = 0;
$grandPreviousBalance = 0;
@endphp
@foreach ($data->accounts as $row)
@php
$grandPreviousBalance += $row->previous_balance ?? 0;
$grandTodayBalance += $row->balance ?? 0;
@endphp
| {{ $row->accounttitle }}
|
{{ $row->balance ?? '' }} |
{{ $row->previous_balance ?? ''}}
|
@endforeach
|
TOTAL
|
AED {{ number_format($grandTodayBalance, 2) }}
|
AED {{ number_format($grandPreviousBalance, 2) }}
|
@endif
@endforeach