@php $currency = $order->currency ?? Helper::setting('currency_symbol', 'currency'); @endphp
{{ config('app.name') }}
{{ $order->store->user->name ?? '' }}
{{ $order->store->address ?? '' }}, {{ $order->store->state ?? '' }}, {{ $order->store->city ?? '' }}
{{ $order->store?->dial_code_contact ?? '' }}{{ $order->store?->contact_person_phone ?? '' }}
Invoice #{{ $order->order_id }}
Date: {{ $order->created_at->format('d M Y') }}
Time: {{ $order->created_at->format('h:i A') }}

Invoice To:
{{ $order->user->name ?? '' }}
{{ $order->user->dial_code ?? '' }}{{ $order->user->phone ?? '' }}
{{ $order->user->email ?? '' }}
Bill To:
@php $address = is_array($order->address) ? $order->address : json_decode($order->address, true); @endphp {{ $address['name'] ?? '' }}
{{ $address['address'] ?? '' }}
{{ $address['city'] ?? '' }}, {{ $address['state'] ?? '' }}
{{ $address['country'] ?? '' }} - {{ $address['postcode'] ?? '' }}

@foreach ($order->items as $item) @php $img = $item->product?->image?->file ?? null; $imagePath = $img && file_exists(storage_path('app/public/' . $img)) ? storage_path('app/public/' . $img) : public_path('assets/img/placeholder.jpg'); @endphp @endforeach
Image Product Price Qty Total
{{ $item->name ?? 'N/A' }} {{ $currency }}{{ number_format($item->price, 2) }} {{ $item->quantity }} {{ $currency }}{{ number_format($item->price * $item->quantity, 2) }}

Thank you for your business!
{{ $order->store?->contact_person_name ?? '' }}
Subtotal {{ $currency }}{{ number_format($order->subtotal, 2) }}
Discount {{ $currency }}{{ number_format($order->discount ?? 0, 2) }}
Shipping {{ $currency }}{{ number_format($order->shipping ?? 0, 2) }}
Tax {{ $currency }}{{ number_format($order->tax ?? 0, 2) }}
Total {{ $currency }}{{ number_format($order->grand_total, 2) }}

Note:
It was a pleasure working with you. We truly appreciate your business and look forward to serving you again.