@extends('layouts.app') @section('title', 'Voucher Purchases') @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

Voucher Purchases

Manage all voucher purchase transactions

Back to Vouchers
@forelse($purchases as $purchase) @empty @endforelse
ID Customer Phone Amount Status Date Actions
#{{ $purchase->id }} {{ $purchase->customer_name ?? '-' }} {{ $purchase->customer_phone ?? '-' }} Rp {{ number_format($purchase->amount ?? 0, 0, ',', '.') }} @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($purchase->status ?? 'unknown') }} {{ $purchase->created_at ? $purchase->created_at->format('d M Y H:i') : '-' }}

No voucher purchases found

@if($purchases->hasPages())
{{ $purchases->withQueryString()->links() }}
@endif
@endsection