{{ "Overdue Customers Report" }}{{ $date ? " - ".$date : "" }}
| Invoice Date | Customer Name | Customer Email | Phone No | Invoice Total | Total Paid | Balance | @php $total = $totalPaid = $totalBalance = 0; @endphp @foreach ($orders as $order) @php $total += $order->total; $totalPaid += ($order->total - $order->amount_due); $totalBalance += $order->amount_due; @endphp
|---|---|---|---|---|---|---|
| {{ date("d/m/Y", strtotime($order->created_at)) }} | {{ $order->customer_name }} | {{ $order->customer_email }} | {{ $order->customer_phone }} | £{{ $order->total }} | £{{ ($order->total - $order->amount_due) }} | £{{ $order->amount_due }} |
| £{{ $total }} | £{{ $totalPaid }} | £{{ $totalBalance }} | ||||