{{ 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 ?? '' }}

#{{ $order->order_id }}
{{ $order->created_at->format('d, M') }} {{ $order->created_at->format('Y') }}
{{ $order->created_at->format('h:i A') }}
{{ __('locale.Invoice To') }}:

{{ $order->user->name }}

{{ $order->user->dial_code }}{{ $order->user->phone }}

{{ $order->user->email }}

@php $address = is_array($order->address) ? $order->address : json_decode($order->address, true); @endphp

{{ __('locale.Bill To') }}:
{{ $address['name'] ?? '' }}
{{ $address['address'] ?? '' }}
{{ $address['city'] ?? '' }},{{ $address['state'] ?? '' }}
{{ $address['country'] ?? '' }}
{{ $address['postcode'] ?? '' }}

@foreach ($order->items as $item) @endforeach
{{ __('Image') }} {{ __('locale.Products') }} {{ __('locale.Price') }} {{ __('locale.Qty') }} {{ __('locale.Total') }}
@php $img=$item->product?->image?->file ?? ''; @endphp Avatar
{{ $item->name ?? 'N/A' }} {{ $currency }}{{ number_format($item->price, 2) }} {{ $item->quantity }} {{ $currency }}{{ number_format($item->price * $item->quantity, 2) }}

{{ $order->store?->contact_person_name ?? '' }}

{{ __('locale.Thanks for your business') }}

{{ __('locale.Subtotal') }}:

{{ __('locale.Discount') }}:

{{ __('locale.Shipping') }}:

{{ __('locale.Tax') }}:

{{ __('locale.Total') }}:

{{ $currency }}{{ number_format($order->subtotal, 2) }}

{{ $currency }}{{ number_format($order->discount ?? 0, 2) }}

{{ $currency }}{{ number_format($order->shipping ?? 0, 2) }}

{{ $currency }}{{ number_format($order->tax ?? 0, 2) }}

{{ $currency }}{{ number_format($order->grand_total, 2) }}


{{ __('locale.Note') }}: It was a pleasure working with you and your team. We truly appreciate your business and hope to serve you again on future orders. Thank you for choosing us!