@extends('layouts.master') @section('meta') @stop @section('content')

Total Amount Due: £{{ number_format($totalDue, 2) }}

Reset Download Pdf
@foreach($orders as $row) @endforeach
Order No Customer Name Phone Number Email Total Amount Paid Amount Due Amount Status Created Date
{{ $row->order_no }} {{ $row->customer->name }} {{ $row->customer->phone_number }} {{ $row->customer->email }} £{{ number_format($row->total, 2) }} £{{ number_format($row->total - $row->amount_due, 2) }} £{{ number_format($row->amount_due, 2) }} @switch($row->status) @case('pending payment') {{strtoupper($row->status)}} @break @case('pending') {{strtoupper('Order Placed')}} @break @case('collected') {{strtoupper($row->status)}} @break @case('inprogress') {{strtoupper($row->status)}} @break @case('invoiced') {{strtoupper($row->status)}} @break @case('paid') {{strtoupper($row->status)}} @break @case('shipped') {{strtoupper($row->status)}} @break @case('delivered') {{strtoupper($row->status)}} @break @case('cancelled') {{strtoupper($row->status)}} @break @endswitch {{date("d M, Y h:i a", strtotime($row->created_at))}}
@stop @section('scripts') @stop