Letterhead
Order Payment History
Customer Info:
@if($order->customer->type == 'individual') Name : {{$order->customer->first_name . " " . $order->customer->last_name}},
Phone : {{$order->customer->phone_number .", ". $order->customer->phone_number2}},
Address : {{$order->address}}
@else Name : {{$order->customer->rep_name . "-". $order->customer->rep_role }}({{$order->customer->corporate_name}}),
Phone : {{$order->customer->rep_phone .", ". $order->customer->phone_number}},
Address : {{$order->address}}
@endif
Invoice Info:
Invoice ID: {{ $order->order_code }}
Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y') }}
Status: {{ ucfirst($order->status) }}
Order Info:
Total: ₦ {{ number_format($order->total ?? 0) }} Total Paid: ₦ {{ number_format($order->total- $order->balance ?? 0) }} Balance: ₦ {{ number_format($order->balance ?? 0) }}
Payments:
@php($count = 1) @foreach($order->payments as $payment) @php($count++) @endforeach
S/N Reference Amount Method Status Date
{{$count ++}} {{$payment->reference}} ₦ {{number_format($payment->amount)}} {{$payment->method}} {{$payment->status}} {{$payment->created_at}}