{{--
Settle the outstanding due on the running subscription.
The client-side arithmetic matches the original: the remaining balance is
amount - discount - already paid, and "due" is what is left after this
payment. The server recalculates both from the stored row.
--}}
@php
$outstanding = (float) $lastPackageInfo['amount']
- (float) $lastPackageInfo['discount']
- (float) $lastPackageInfo['total_paid'];
@endphp
Cancel
@push('scripts')
@endpush