@extends('layouts.portal') @section('content')
@if(count($orders) > 0)
Product Details
Amount
Order Date
Status
Action
@foreach($orders as $order)
@if(!empty($order->download_url)) Product Image @else
🛍️
@endif

{{ $order->product_name }}

Order #{{ $order->order_number }} | Qty: {{ $order->qty }}

Amount
₹{{ number_format($order->price, 2) }}
{{ $order->payment_method ?? 'Online' }}
Date
{{ isset($order->created_at) ? \Carbon\Carbon::parse($order->created_at)->format('d M, Y') : ($order->date ?? date('d M, Y')) }}
Status @if(strtolower($order->status) == 'completed' || strtolower($order->status) == 'success') ✓ {{ $order->status }} @else ⌛ {{ $order->status }} @endif
@if(!empty($order->download_url)) Download File @else No file @endif
@endforeach
@else
🛍️

No Purchases Yet

You haven't bought any digital products, eBooks, or videos yet.
Explore our shop to discover amazing content.

Browse Store Now
@endif
← Back to Customer Dashboard
@endsection