{{ $index_bill == 0 ? $item_bill['name'] : '' }} |
{{ $index_bill == 0 ? $item_bill['rmno'] : '' }} |
{{ $index_bill == 0 ? $item_bill['billno'] : '' }} |
{{ $item_bill['description'] }} |
{{ (array_sum($item_bill['prev_balance'])) }}
@php
$total_prev_balance += array_sum($item_bill['prev_balance']);
@endphp
|
{{ (array_sum($item_bill['debit'])) }}
@php
$total_debit += array_sum($item_bill['debit']);
$summaries[$key]['label'] = $item_bill['description'];
$summaries[$key]['debit'][] = array_sum($item_bill['debit']);
@endphp
|
{{ (array_sum($item_bill['credit']) * -1) }}
@php
$total_edit += array_sum($item_bill['credit']);
$summaries[$key]['credit'][] = array_sum($item_bill['credit']) * -1;
@endphp
|
@php
$balance += array_sum($item_bill['prev_balance']) + array_sum($item_bill['debit']) + array_sum($item_bill['credit']);
$bill_balance += $balance;
@endphp
{{ ($balance) }}
|
{{ $item_bill['arrival'] }} |
{{ $item_bill['departure'] }}
|
{{ $item_bill['transaction_date'] }}
|
@php
$bill_balance = $balance;
$index_bill++;
$idx++;
@endphp
@endforeach
@php
$total_balance += $bill_balance;
@endphp
@endforeach
@if(count($bills) > 0)