@extends('layouts.customer') @section('content')

Pay Bills

{{-- Biller Categories --}}

Categories

@foreach($categories ?? ['Electricity', 'Water', 'Internet', 'TV', 'Insurance', 'Government'] as $category) @endforeach
{{-- Bill Payment Form --}}

Select a biller

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@csrf @method('POST')
@error('customer_number')

{{ $message }}

@enderror
$
@error('amount')

{{ $message }}

@enderror
{{-- Payment History --}}

Payment History

@forelse($billPayments ?? [] as $payment)

{{ $payment->biller_name }}

{{ $payment->created_at->format('M d, Y') }}

${{ number_format($payment->amount, 2) }}

{{ ucfirst($payment->status) }}
@empty

No payment history

@endforelse
@endsection