@extends('layouts.app') @section('title', 'Voucher Purchases') @section('content')
Manage all voucher purchase transactions
| 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 |
||||||