@php $total_paid_amount=0; $user = $order->user; $name = !empty($user->username) ? $user->username : (!empty($user->team) ? $user->team : (!empty($user->email) ? $user->email : ($user->mobile ?? '-') ) ); @endphp

Order #{{ $order->order_number }}

User Details:
{{ $name }}
{{ $user->mobile ?? '-' }}
{{ $user->email ?? '-' }}
Shipping Address:
@if($order->shipping) {{ $order->shipping->full_name }}
{{ $order->shipping->phone }}
{{ $order->shipping->house_no }}, {{ $order->shipping->street }}
{{ $order->shipping->city }}, {{ $order->shipping->state }} - {{ $order->shipping->pincode }} @else - @endif

Delivery Status: {{ ucfirst($order->order_status) }}


Products
@foreach($order->items as $index => $item) @php $total_paid_amount=$total_paid_amount+($item->price * $item->quantity); @endphp @endforeach
# Product Rate Qty Total Price
{{ $index + 1 }} {{ $item->product->name ?? '-' }} ₹ {{ number_format($item->price, 2) }} {{ $item->quantity }} ₹ {{ number_format($item->price * $item->quantity, 2) }}
Subtotal ₹ {{ number_format($total_paid_amount,2) }}
Total Paid ₹ {{ number_format($total_paid_amount,2) }}