YOUR LOGO
NO. {{ $invoice->invoice_number ?? str_pad($invoice->order_id, 6, '0', STR_PAD_LEFT) }}
INVOICE
@php $invoiceDate = $invoice->invoice_date ? $invoice->invoice_date : $invoice->order_date; $formattedDate = \Carbon\Carbon::parse($invoiceDate)->format('d F, Y'); @endphp Date: {{ $formattedDate }}

Billed to:

{{ $invoice->buyer_name_en ?? 'N/A' }}

{{ $invoice->buyer_mobile && $invoice->buyer_country_code ? $invoice->buyer_country_code . ' ' . $invoice->buyer_mobile : ($invoice->buyer_mobile ?? 'N/A') }}

From:

{{ $invoice->seller_name_en ?? 'N/A' }}

{{ $invoice->seller_mobile && $invoice->seller_country_code ? $invoice->seller_country_code . ' ' . $invoice->seller_mobile : ($invoice->seller_mobile ?? 'N/A') }}

@php $lineTotal = $invoice->final_price * $invoice->quantity; @endphp
Item Original Price Final Price Quantity Total
{{ $invoice->product_name_en ?? 'N/A' }} {{ number_format($invoice->original_price, 2) }} MRU {{ number_format($invoice->final_price, 2) }} MRU {{ number_format($invoice->quantity, 2) }} kg {{ number_format($lineTotal, 2) }} MRU
Total: {{ number_format($lineTotal, 2) }} MRU
Delivery Charge: {{ number_format($invoice->delivery_charge, 2) }} MRU
Total: {{ number_format($lineTotal + $invoice->delivery_charge, 2) }} MRU
@if(isset($payment_completed) && !$payment_completed)

Payment Status: Pending - Payment Not Completed

Payment method: To be determined

@else

Payment method: {{ $payment_method }}

@if(isset($payment_status)) @php $statusMap = [ 1 => 'Pending', 2 => 'Completed', 3 => 'Failed' ]; $statusText = $statusMap[$payment_status] ?? 'Unknown'; $statusColor = $payment_status == 2 ? '#4CAF50' : ($payment_status == 3 ? '#f44336' : '#ff9800'); @endphp

Payment Status: {{ $statusText }}

@endif @endif

Note: Thank you for choosing us!