@extends('layouts.app') @section('content')
| ID | Order No | Products | Date | Total | Status | Invoice |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | #{{ $order->order_no }} | {{-- PRODUCTS --}}
@foreach($order->items as $item)
{{-- IMAGE --}}
{{-- @if($item->product && $item->product->image)
@endforeach
|
{{ $order->created_at->format('d M Y') }} | ₹{{ number_format($order->total_amount, 2) }} | {{-- STATUS --}}@if($order->order_status === 'DELIVERED') Delivered @elseif($order->order_status === 'PLACED') Placed @else {{ $order->order_status }} @endif | {{-- INVOICE --}}View |
| No Orders Found | ||||||