@extends('layouts.portal') @php($rows = $plan->installments->where('status', '!=', 'cancelled')->values()) @section('title', 'Edit plan '.$plan->code) @section('subtitle', $plan->customer_name.' ยท changes are recorded in the financial audit trail with before/after amounts.') @section('actions') Back to plan@endsection @section('content')
@csrf @method('PUT')

Fees

If you change fees, adjust the installment amounts below so they add up to the new final fee. Paid amounts can never be reduced.

Installments

@foreach($rows as $x) @php($locked = in_array($x->status, ['paid', 'waived'], true)) @endforeach
LabelDue datePaidAmount
{{ money2((float) $x->paid_amount + (float) $x->waived_amount) }}
Installments total (must equal the final fee)
@error('rows')
{{ $message }}
@enderror
@endsection @push('scripts')@endpush