@extends('layouts.admin') @section('title', 'Payment Checkout') @section('content') @php $balance = (float) ($invoice->balance ?? 0); $studentId = old('student_id', $student?->id ?? $invoice?->student_id); @endphp @include('institution.partials.flash')
@csrf
@error('student_id')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror
Initiate payment Cancel
@if($invoice)
Invoice{{ $invoice->invoice_number }}
Student{{ $student ? trim($student->fullName()) : '—' }}
Total{{ number_format((float) $invoice->total_amount, 2) }}
Balance{{ number_format($balance, 2) }}
@else

No invoice selected. Enter a student ID and amount to start checkout.

@endif
@endsection