@extends('layouts.portal') @section('title', 'New payment plan') @section('subtitle', $enrollment ? $enrollment->user->name.' · '.$enrollment->batch->course->title.' · '.$enrollment->batch->batch_code : ($invoice ? 'For invoice '.$invoice->number : 'Split a course fee into a registration fee and installments.')) @section('actions') Back@endsection @section('content') @php($d = $defaults)
@csrf

Learner & course

@if($enrollment)

{{ $enrollment->user->name }} · {{ $enrollment->user->email }}
{{ $enrollment->batch->course->title }} · Batch {{ $enrollment->batch->batch_code }} · Enrollment {{ $enrollment->code }}@if($invoice) · Invoice {{ $invoice->number }}@endif

@elseif($invoice)

{{ $invoice->customer_name }} · {{ $invoice->customer_email }}
Invoice {{ $invoice->number }} · {{ money2($invoice->total) }}

@else
Only enrollments without an active plan are listed. The plan is attached to the enrollment's invoice (created if missing).
@endif

Fees

Schedule

@endsection @push('scripts')@endpush