@extends('pdf._base') @section('title', 'Installment schedule '.$plan->code) @php $rows = $plan->installments->where('status', '!=', 'cancelled')->values(); $course = $plan->enrollment?->batch?->course ?? $plan->course; $batch = $plan->enrollment?->batch; $next = $plan->nextInstallment(); @endphp @section('body') @include('pdf._letterhead', ['title' => 'PAYMENT PLAN', 'number' => $plan->code, 'subtitle' => 'Installment schedule & agreement']) @if($plan->status === 'completed')
|
Learner
{{ $plan->customer_name }}
{{ $plan->customer_email }}@if($plan->user?->phone)
{{ $plan->user->phone }}@endif @if($plan->user?->student_code) Student ID {{ $plan->user->student_code }}@endif |
Program
{{ $course?->title ?? 'Training program' }}
@if($batch)Batch {{ $batch->batch_code }}@if($batch->start_date) · starts {{ $batch->start_date->format('d M Y') }}@endif
@endif @if($plan->enrollment)Enrollment {{ $plan->enrollment->code }}@endif |
|
|
Fee breakdown
|
Account summary
|
| # | Installment | Due date | Amount | Paid | Balance | Status |
|---|---|---|---|---|---|---|
| {{ $n + 1 }} | {{ $x->label }} | {{ $x->due_date->format('d M Y') }}@if($x->original_due_date && ! $x->original_due_date->eq($x->due_date)) rescheduled from {{ $x->original_due_date->format('d M') }}@endif | {{ money2($x->amount) }} | {{ money2($x->paid_amount) }} | {{ money2($x->outstanding()) }} | {{ $x->statusLabel() }} |
| Total | {{ money2($rows->sum('amount')) }} | {{ money2($rows->sum('paid_amount')) }} | {{ money2($plan->remaining()) }} |
How to pay @foreach($methods as $m)• {{ $m }} @endforeachReference: {{ $plan->invoice?->number ?? $plan->code }}@if($plan->payment_method) · preferred method: {{ ucfirst(str_replace('_', ' ', $plan->payment_method)) }}@endif |
@if($plan->terms) Payment terms {!! nl2br(e($plan->terms)) !!} |
Learner — {{ $plan->customer_name }} |
Accounts — {{ config('infotics.brand.legal_name') }} |