{{ "Overdue Invoice Report" }}{{ $date ? " - ".$date : "" }}

@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 @endforeach
Order # Invoice Date Customer Name Customer Email Phone No Invoice Total Total Paid Balance
{{ $order->order_no }} {{ 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 }}