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') }}
@php $grandTodayBalance = 0; $grandPreviousBalance = 0; @endphp @foreach ($data->accounts as $row) @php $grandPreviousBalance += $row->previous_balance ?? 0; $grandTodayBalance += $row->balance ?? 0; @endphp @endforeach
Balance Amount Balance Amount
{{ $row->accounttitle }} {{ $row->balance ?? '' }} {{ $row->previous_balance ?? ''}}
TOTAL AED {{ number_format($grandTodayBalance, 2) }} AED {{ number_format($grandPreviousBalance, 2) }}
@endif @endforeach