@php $gt_atb_total = 0; @endphp

{{ strtoupper(session('company_name')) }}

{{ strtoupper(session('branch_name')) }}

ADD TO BILL SUMMARY REPORT{{ session('report_exception') == "0" ? " ACCTG" : "" }}

Bill Period {{ sprintf("%02d", $month) }}-{{ $year }}


@foreach($data AS $d) @if(count($d->details) > 1) @foreach($d->details AS $i => $r) {{-- --}} @endforeach @else {{-- --}} @endif @php $gt_atb_total += $d->others; @endphp @endforeach
Customer Name Account No. Class Book Meter No Bill No. Reference Amount
{{ strtoupper($d->cust_name) }} {{ $d->acct_number }}{{ strtoupper(substr($d->complete_address, 0, 60)) }}{{ $d->acct_class }} {{ $d->book }} {{ $d->meter_no }} {{ $d->bill_number }} {{ $d->details[$i]['reference'] }} {{ number_format($d->details[$i]['atb'],2,".",",") }}
{{ strtoupper($d->cust_name) }} {{ $d->acct_number }}{{ strtoupper(substr($d->complete_address, 0, 60)) }}{{ $d->acct_class }} {{ $d->book }} {{ $d->meter_no }} {{ $d->bill_number }} {{ $d->details[0]['reference'] }} {{ number_format($d->details[0]['atb'],2,".",",") }}
Total Number of Customers: {{ $grand_total['total_count'] }} {{ number_format((float)$gt_atb_total, 2,".",",") }}