@php $logoImage = \App\Models\Logo::select('logo')->first(); @endphp {{ config('app.name') }}

Invoice

Order #: {{ $order->order_number }}

Date: {{ $order->created_at->format('d M Y') }}

Customer Info

{{ ucwords($order->user->name) }}
Email: {{ $order->user->email }}
Phone: {{ $order->shipping_phone }}

Shipping Address

{{ ucfirst($order->shipping_address) }}
{{ $order->shipping_city }}, {{ $order->shipping_state }} - {{ $order->shipping_zip }}
{{ $order->shipping_country }}

Billing Address

{{ ucfirst($order->billing_address ?? $order->shipping_address) }}
{{ $order->billing_city ?? $order->shipping_city }}, {{ $order->billing_state ?? $order->shipping_state }} - {{ $order->billing_zip ?? $order->shipping_zip }}
{{ $order->billing_country ?? $order->shipping_country }}

Order Items

@foreach($order->orderItem as $item) @endforeach
Product SKU Qty Price (₹) Total (₹)
{{ ucwords($item->product->title) }} {{ $item->product->sku ?? '-' }} {{ $item->quantity }} {{ number_format($item->discount_price, 2) }} {{ number_format($item->discount_price * $item->quantity, 2) }}
@if($order->discount_amount) @endif
Subtotal: ₹{{ number_format($order->subtotal ?? $order->total_amount, 2) }}
Shipping: ₹{{ number_format($order->shipping_charge ?? 0, 2) }}
Tax: ₹{{ number_format($order->tax ?? 0, 2) }}
Discount: -₹{{ number_format($order->discount_amount, 2) }}
Grand Total: ₹{{ number_format($order->total_amount, 2) }}
Payment Method: {{ ucfirst($order->payment_method) }}