@extends('layouts.app') @php($editing = $payment->exists) @section('title', $editing ? 'Edit Invoice' : 'New Invoice') @section('subtitle', $editing ? $payment->invoice_number : 'Create a student invoice') @section('content') Cancel
@csrf @if ($editing) @method('PUT') @endif

Invoice details

@error('student_id')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{ setting('currency_symbol', 'KSh') }}
@error('amount')
{{ $message }}
@enderror
{{ setting('currency_symbol', 'KSh') }}
@error('discount')
{{ $message }}
@enderror
@error('due_date')
{{ $message }}
@enderror

Summary

Amount—
Discount—
Total due—
@if ($editing)
Already paid{{ money($payment->amount_paid) }}
Balance{{ money($payment->balance()) }}
@endif
Status is set automatically from payments received and the due date.
Cancel
@endsection @push('scripts') @endpush