{{-- Toolbar --}}
@foreach(request()->except('per_page') as $key => $value) @endforeach
@foreach($transactions as $transaction) @php $statusClass = match($transaction->status) { 'successful' => 'bg-green-100 text-green-700', 'failed' => 'bg-red-100 text-red-700', 'pending', 'processing' => 'bg-yellow-100 text-yellow-700', default => 'bg-gray-100 text-gray-700', }; @endphp @endforeach
Transaction Amount Status Action
{{ strtolower($transaction->biller) }} · {{ $transaction->product }}@if(!empty($transaction->quantity)) · {{ $transaction->quantity }}@endif
{{ $transaction->number ?: $transaction->session_id }}
₦{{ number_format($transaction->amount, 2) }} {{ $transaction->status }} View
@csrf @method('DELETE')
{{ $transactions->appends(request()->query())->links() }}