@if($data['activeOrders']->isEmpty())
No Active Product Found!
@else
@foreach($data['activeOrders'] as $active)
-
Order no #{{$active->id ?? ''}}
-
Order date: {{$active->created_at->format('M d Y, h.i A') ?? ''}}
-
Estimated: Jun 30 2023
-
Order status: {{$active->order_status ?? ''}}
-
Payment method: {{$active->method ?? ''}}
{{$active->orderDetails->first()->name ?? ''}}
Quantity: {{$active->orderDetails->first()->quantity ?? ''}}
Total price:
₦{{$active->orderDetails->first()->amount ?? ''}}
@endforeach
@endif
@if($data['completedOrders']->isEmpty())
No Active Product Found!
@else
@foreach($data['completedOrders'] as $active)
-
Order no #{{$active->id ?? ''}}
-
Order date: {{$active->created_at->format('M d Y, h.i A') ?? ''}}
-
Estimated: Jun 30 2023
-
Order status: {{$active->order_status ?? ''}}
-
Payment method: {{$active->method ?? ''}}
{{$active->orderDetails->first()->name ?? ''}}
Quantity: {{$active->orderDetails->first()->quantity ?? ''}}
Total price:
₦{{$active->orderDetails->first()->amount ?? ''}}
@endforeach
@endif
@if($data['cancelledOrders']->isEmpty())
No Active Product Found!
@else
@foreach($data['cancelledOrders'] as $active)
-
Order no #{{$active->id ?? ''}}
-
Order date: {{$active->created_at->format('M d Y, h.i A') ?? ''}}
-
Estimated: Jun 30 2023
-
Order status: {{$active->order_status ?? ''}}
-
Payment method: {{$active->method ?? ''}}
{{$active->orderDetails->first()->name ?? ''}}
Quantity: {{$active->orderDetails->first()->quantity ?? ''}}
Total price:
₦{{$active->orderDetails->first()->amount ?? ''}}
@endforeach
@endif