@vite('resources/css/app.css') @if ($invoice->isCancelled())
{{ __('app.fees.print.cancelled') }}
@endif

{{ $institutionName }}

{{ $slogan }}

{{ __('app.fees.print.invoice_title') }}

{{ $invoice->invoice_no }}

{{ __('app.fees.print.bill_to') }}

{{ $invoice->student?->localizedName() }}

{{ $invoice->student?->student_uid }} · {{ __('app.fees.fields.roll') }}: {{ $invoice->student?->roll ?? '—' }}

{{ $invoice->academicYear?->name }} · {{ $invoice->division?->localizedName() }} · {{ $invoice->academicClass?->localizedName() }} @if ($invoice->section) · {{ $invoice->section->localizedName() }} @endif

{{ __('app.fees.print.details') }}

{{ __('app.fees.fields.kind') }}
{{ $invoice->kind->label() }}
{{ __('app.fees.fields.billing_period') }}
{{ $invoice->billing_period }}
{{ __('app.fees.fields.issue_date') }}
{{ $invoice->issue_date->translatedFormat('d M Y') }}
{{ __('app.fees.fields.due_date') }}
{{ $invoice->due_date->translatedFormat('d M Y') }}
{{ __('app.fees.fields.status') }}
{{ $invoice->status->label() }}
@foreach ($invoice->items as $index => $item) @endforeach
# {{ __('app.fees.fields.description') }} {{ __('app.fees.fields.amount') }} {{ __('app.fees.fields.discount') }} {{ __('app.fees.fields.net') }}
{{ $index + 1 }} {{ $item->localizedDescription() }} @if ($item->head) {{ $item->head->localizedName() }} @endif {{ number_format((float) $item->amount, 2) }} {{ number_format((float) $item->discount_amount, 2) }} {{ number_format((float) $item->net_amount, 2) }}
{{ __('app.fees.fields.subtotal') }} {{ number_format((float) $invoice->subtotal, 2) }}
{{ __('app.fees.fields.discount') }} {{ number_format((float) $invoice->discount_total, 2) }}
{{ __('app.fees.fields.total') }} {{ number_format((float) $invoice->total, 2) }}
{{ __('app.fees.fields.paid_total') }} {{ number_format((float) $invoice->paid_total, 2) }}
{{ __('app.fees.fields.refunded') }} {{ number_format((float) $invoice->refund_total, 2) }}
{{ __('app.fees.fields.balance') }} {{ number_format((float) $invoice->balance, 2) }}
@if ($invoice->notes)

{{ __('app.fees.fields.notes') }}

{{ $invoice->notes }}

@endif @if ($invoice->isCancelled())

{{ __('app.fees.print.cancelled') }}

{{ $invoice->cancelled_at?->translatedFormat('d M Y, H:i') }} @if ($invoice->cancel_reason) — {{ $invoice->cancel_reason }} @endif

@endif
{{ __('app.fees.print.received_by') }}
{{ __('app.fees.print.authorized_signature') }}