{{-- Invoice Card --}}
{{-- Header --}}

Khulna Mal

Dhaka, Bangladesh
01795469462

INVOICE

Order #{{ $order->id }}

{{ $order->created_at->format('d M Y, h:i A') }}

{{ $order->status }}
{{-- Info Blocks --}}

Customer

{{ $order->customer_name }}

{{ $order->customer_phone }}

@if($order->customer_email)

{{ $order->customer_email }}

@endif

{{ $order->customer_address }}

Payment Method

{{ $order->payment_method === 'cod' ? 'Cash on Delivery' : ($order->payment_method === 'online' ? 'Online Payment' : ucfirst($order->payment_method)) }}
{{-- Items Header --}}
Product
Qty Price
{{-- Items --}}
@if($order->cart_data) @php $items = is_array($order->cart_data) ? $order->cart_data : json_decode($order->cart_data, true) ?? []; @endphp @foreach($items as $item)
{{ $item['name'] ?? 'Product' }}
{{ $item['quantity'] ?? 1 }} ৳{{ number_format($item['price'] ?? 0) }}
@endforeach @elseif($order->product)
{{ $order->product->name }}
{{ $order->quantity }} ৳{{ number_format($order->total_price) }}
@else

Product information not found

@endif
{{-- Dashed separator before total --}}
{{-- Total --}}
Grand Total ৳{{ number_format($order->total_price) }}
{{-- Footer --}}
Thank you for your order! For any questions, contact 01795469462