Order# ET{{ $order->id }}
Sender Details
@if (isset($order->user))
Name: {{ $order->user->name }}
Phone: {{ $order->user->phone }}
Email: {{ $order->user->email }}
Country: {{ $order->user->country->name }}
Address: {{ $order->user->address }}
@endif Paid Via: {{ App\Models\BankAccount::where('id', $order->payment_bank_id)->value('bank_name') }}, {{ number_format($order->total) }} {{ $order->currency }}
@if (isset($order->user_wallet)) Paid Via: User Wallet, {{ $order->user_wallet }}
@endif Trx ID: {{ $order->trx_id }}
Phone: {{ $order->user->phone }}
Email: {{ $order->user->email }}
Country: {{ $order->user->country->name }}
Address: {{ $order->user->address }}
@endif Paid Via: {{ App\Models\BankAccount::where('id', $order->payment_bank_id)->value('bank_name') }}, {{ number_format($order->total) }} {{ $order->currency }}
@if (isset($order->user_wallet)) Paid Via: User Wallet, {{ $order->user_wallet }}
@endif Trx ID: {{ $order->trx_id }}
Bill Detail
@php
$billCategory = App\Models\BillCategory::where('id', $order->bill_category_id)->first();
$billCompany = App\Models\UtilityBill::where('id', $order->bill_company_id)->first();
$country = App\Models\Country::where('id', $order->country_id)->first();
@endphp
Category: {{ $billCategory->name }}
Company: {{ $billCompany->name }}
Country: {{ $country->name }}
Currency: {{ $order->bill_currency }}
Amount: {{ number_format($order->bill_amount) }}, Tax: {{ $order->bill_tax }}
Total: {{ number_format($order->bill_amount + $order->bill_tax) }} {{ $order->bill_currency }}
Due Date: {{ $order->due_date }}
Reference#: {{ $order->bill_reference }}
Company: {{ $billCompany->name }}
Country: {{ $country->name }}
Currency: {{ $order->bill_currency }}
Amount: {{ number_format($order->bill_amount) }}, Tax: {{ $order->bill_tax }}
Total: {{ number_format($order->bill_amount + $order->bill_tax) }} {{ $order->bill_currency }}
Due Date: {{ $order->due_date }}
Reference#: {{ $order->bill_reference }}