{{ session('company_name') }}

{{ session('branch_name') }}

@foreach($data as $d) @php $record_num++; $gt_cum += $d->total_cum; $gt_p_cum += $payable; $gt_amount_paid += $d->amount_paid; @endphp @endforeach
No. Month Year Customer Name Account No. Class Book Total CuM Payable For Highview Amount Paid Date Paid
{{ $record_num }} {{ $d->bill_month }} {{ $d->bill_year }} {{ strtoupper($d->customer_name) }} {{ $d->acct_number }} {{ $d->acct_class }} {{ $d->book_code }} {{ $d->total_cum }} @php $payable = 0; if($d->total_cum <= 10){ $payable = 20.00; echo number_format((float)$payable, 2,".",","); } else { $payable = $d->total_cum * 2; echo number_format((float)$payable, 2,".",","); } @endphp {{ number_format((float)$d->amount_paid, 2,".",",") }} {{ date("m/d/Y", strtotime($d->collection_date)) }}
  GRAND TOTAL           {{ $gt_cum }} {{ number_format((float)$gt_p_cum, 2,".",",") }} {{ number_format((float)$gt_amount_paid, 2,".",",") }}