@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['unpaid' => 'amber', 'partially_paid' => 'blue', 'paid' => 'green', 'overdue' => 'red', 'cancelled' => 'slate']; $tenantTimezone = $tenant->timezone ?: 'UTC'; @endphp
{{ ucfirst(str_replace('_', ' ', $invoice->status)) }} Print / PDF @if(!in_array($invoice->status, ['paid', 'cancelled'])) @if($invoice->student && $invoice->student->guardians->isNotEmpty()) @endif @endif
@if($invoice->student)

Student

Name
{{ $invoice->student->fullName() }} ({{ $invoice->student->student_code }})
Class
{{ $invoice->student->section?->schoolClass?->name ?? '—' }}
Section
{{ $invoice->student->section?->name ?? '—' }}
Roll
{{ $invoice->student->roll_number ?? '—' }}
Branch
{{ $invoice->student->branch?->name ?? '—' }}
Campus
{{ $invoice->student->branch?->campus?->name ?? '—' }}
@endif
Description
{{ $invoice->description }}
Fee Type
{{ $invoice->feeStructure?->feeType?->name ?? 'Ad-hoc' }}
Due Date
{{ $invoice->due_date->format('M j, Y') }}
Issued
{{ $invoice->issued_at->format('M j, Y') }}
Billing Period
{{ $invoice->billing_period ?? '—' }}
@if($invoice->admissionApplication)
Linked Application
{{ $invoice->admissionApplication->reference }}
@endif

Payments

@forelse($invoice->payments as $payment) @empty @endforelse
Gateway Amount Status Paid At Recorded By
{{ ucfirst($payment->gateway) }} {{ \App\Support\Money::format($payment->amount_cents, $currency) }} {{ ucfirst($payment->status) }} {{ $payment->paid_at?->setTimezone($tenantTimezone)->format('M j, Y g:i A') ?? '—' }} {{ $payment->recordedBy?->name ?? ($payment->payer_name ?? '—') }}
No payments recorded yet.
@csrf

Records a cash / bank-transfer payment collected offline and posts it to the ledger immediately.

@if($invoice->student && $invoice->student->guardians->isNotEmpty())

This draft is for review — send it via the Bulk Messages composer or your own channel.

@endif