@extends('adminlte::page') @section('title', 'Record Payment') @section('content_header')

Record Payment for {{ $studentBill->student->first_name }} {{ $studentBill->student->last_name }}

@stop @section('content')
{{-- Success message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Validation errors --}} @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Student Bill Details --}}
Student Name {{ $studentBill->student->first_name }} {{ $studentBill->student->last_name }}
Bill {{ $studentBill->bill->title ?? 'Unnamed Bill' }}
Total Amount {{ number_format($studentBill->total_amount, 2) }}
Amount Paid {{ number_format($studentBill->amount_paid, 2) }}
Remaining Balance {{ number_format($studentBill->balance, 2) }}
Status {{ ucfirst($studentBill->status ?? 'unpaid') }}
Due Date {{ $studentBill->due_date ? $studentBill->due_date->format('Y-m-d') : '-' }}
{{-- Payment Form --}}
@csrf
Back
@stop