@extends('backend.master') @push('styles') @endpush @section('content')
Bill Payments
@if(request()->hasAny(['status','q'])) Reset @endif
@if(session('ok'))
{{ session('ok') }}
@endif @if ($errors->any())
Validation error:
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@forelse($payments as $p) @empty @endforelse
# User Biller Account Amount Reference Txn Status Created Actions
#{{ $p->id }} {{ $p->user?->name }} {{ $p->biller?->name ?? ('Biller #'.$p->biller_id) }}
{{ $p->account_name }}
{{ $p->account_no }}
{{ number_format($p->amount,2) }} {{ $p->reference }} {{ $p->txn_id }} @php $badgeClass = match($p->status) { 'succeeded' => 'bg-success', 'failed' => 'bg-danger', default => 'bg-warning text-dark' }; $icon = match($p->status) { 'succeeded' => 'fa-circle-check', 'failed' => 'fa-circle-xmark', default => 'fa-hourglass-half' }; @endphp {{ ucfirst($p->status) }} {{ $p->created_at?->format('Y-m-d H:i') }} @if($p->status === 'pending') @else @endif
No bill payments found.
{{ $payments->links() }}
{{-- Custom Modal for succeed/fail --}} @push('scripts') @endpush @endsection