My Orders
Sr No. | Purchase Date | Order ID | Order Image | Total Amount | Action |
---|---|---|---|---|---|
{{ $loop->iteration }} | {{ presentDate($order->created_at) }} | {{ $order->id }} |
@php
$firstProduct = $order->products->first();
if ($firstProduct) {
$pictures = json_decode($firstProduct->pictures, true);
$firstImage = is_array($pictures) && count($pictures) > 0 ? $pictures[0] : asset('img/default-product.jpg');
} else {
$firstImage = asset('img/default-product.jpg');
}
@endphp
|
{{ $order->billing_total }} | View |