@extends('layouts.admin') @section('page-title', 'Offline Purchase Histories') @section('content')

Offline Purchase Histories

Found {{ $purchases->total() }} records

Back to Packages

Offline Purchases

@forelse($purchases as $index => $purchase) @empty @endforelse
# 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')
@csrf
@elseif($purchase->status === 'completed')
@csrf
@else - @endif
No offline purchases found
@if($purchases->hasPages())
{{ $purchases->links() }}
@endif
@endsection