{{$business->name}}

Customer Wise Credit Summary Report

@if(!empty($start_date) && !empty($end_date))

From {{ @format_date($start_date) }} to {{ @format_date($end_date) }}

@endif
@php $total_final = 0; $total_credit = 0; $current_customer = null; @endphp @foreach($report_data as $data) @php $credit = $data->final_total - $data->total_paid; $total_final += $data->final_total; $total_credit += $credit; @endphp @if($current_customer != $data->customer_code) @php $current_customer = $data->customer_code; @endphp @endif @endforeach
Date Invoi. No. Cashier Customer Code Payment Status Payment Method Invoice Total Invoiced Cre. Amt.
{{ $data->customer_name }} ({{ $data->customer_code }})
{{ @format_datetime($data->transaction_date) }} {{ $data->invoice_no }} {{ $data->cashier_name }} {{ $data->customer_code }} {{ ucfirst($data->payment_status) }} {{ ucfirst(str_replace('_', ' ', $data->payment_method ?? 'Credit')) }} {{ @num_format($data->final_total) }} {{ @num_format($credit) }}