@if ($orders->isEmpty())
@endforeach
No order has been made yet.
@endif @foreach ($orders as $order){{ __('text.Order ID.') }} {{ $order->id }}
{{ __('text.Products') }}:
@foreach ($order->orderDetails as $detail)
@if ($detail->order_id == $order->id)
{{ $detail->product_name }} x{{ $detail->quantity }}
@endif
@endforeach
{{ __('text.Total Price') }}: ৳{{ $order->subtotal }}
{{ __('text.Order Status') }}
@if ($order->status == 1)
Processing
@elseif ($order->status == 2)
Shipped
@elseif ($order->status == 3)
Delivered
@else
Failed
@endif
{{ __('text.The following addresses will be used on the checkout page by default') }}