@extends('layouts.admin') @section('page-title', 'Offline Purchase Histories') @section('content')
Found {{ $purchases->total() }} records
| # | Vendor | Package | Amount | Transaction ID | Purchase Date | Expires | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $purchases->firstItem() + $index }} |
{{ $purchase->vendor->name }}
{{ $purchase->vendor->email }}
|
{{ $purchase->package->name }} | ${{ number_format($purchase->amount, 2) }} | {{ $purchase->transaction_id ?? '-' }} | {{ $purchase->created_at->format('d M Y') }} | {{ $purchase->expires_at ? $purchase->expires_at->format('d M Y') : '-' }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', 'refunded' => 'bg-blue-100 text-blue-800', ]; @endphp {{ ucfirst($purchase->status) }} | @if($purchase->status === 'pending') @elseif($purchase->status === 'completed') @else - @endif |
| No offline purchases found | ||||||||