@extends('layouts.main') @section('title', 'My Gift Cards') @section('style') @endsection @section('content')

My Gift Cards


Filter Orders
Clear
@forelse ($gift_cards as $checkout)
Transaction on: {{ $checkout->created_at->format('F j, Y, g:i a') }} @if ($checkout->tran_id)
Checkout ID: {{ $checkout->checkout_id }}
@endif
Total Paid: ₹{{ AmountFormat($checkout->total_amount) }} @if ($checkout->invoice_id != '') @endif
    @foreach ($checkout->orders as $order) @php $status = strtoupper($order->status); $statusClass = 'status-unknown'; if ($status == 'COMPLETE') { $statusClass = 'status-complete'; } elseif ($status == 'PROCESSING') { $statusClass = 'status-processing'; } elseif ($status == 'PENDING') { $statusClass = 'status-pending'; } elseif ($status == 'FAILED') { $statusClass = 'status-failed'; } @endphp
  • {{ optional($order->product)->name ?? 'Gift Card' }}
    {{ optional($order->product)->name ?? 'Product Not Found' }}
    SKU: {{ $order->product_sku }} Referance Id: {{ $order->refno }}
    Amount ₹{{ AmountFormat($order->amount) }}
    Qty Qty: {{ $order->quantity }}
    Status {{ $order->status }}
  • @endforeach
@empty
@if (!empty($productName))
No Results Found

No gift cards found matching your filter for "{{ $productName }}".

Clear Filter @else
No Gift Cards Found

You have not purchased any gift cards yet.

Shop for Gift Cards @endif
@endforelse
{{ $gift_cards->links() }}
@endsection