@vite('resources/css/app.css')

{{ $institutionName }}

{{ $slogan }}

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

{{ $statement['from'] ? \Illuminate\Support\Carbon::parse($statement['from'])->translatedFormat('d M Y') : __('app.fees.statement.all_time') }} — {{ $statement['to'] ? \Illuminate\Support\Carbon::parse($statement['to'])->translatedFormat('d M Y') : __('app.fees.statement.to_date') }}

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

{{ $student->localizedName() }}

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

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

@foreach ([ 'opening' => $statement['opening'], 'debit' => $statement['totals']['debit'], 'credit' => $statement['totals']['credit'], 'closing' => $statement['totals']['closing'], ] as $key => $amount)

{{ __('app.fees.statement.summary.'.$key) }}

{{ number_format((float) $amount, 2) }}

@endforeach

{{ __('app.fees.statement.summary.outstanding') }}: {{ number_format((float) $statement['outstanding'], 2) }}

@forelse ($statement['rows'] as $row) @empty @endforelse
{{ __('app.fees.fields.date') }} {{ __('app.fees.fields.reference') }} {{ __('app.fees.fields.description') }} {{ __('app.fees.statement.summary.debit') }} {{ __('app.fees.statement.summary.credit') }} {{ __('app.fees.fields.balance') }}
{{ $statement['from'] ?? '—' }} {{ __('app.fees.statement.opening_row') }} {{ number_format((float) $statement['opening'], 2) }}
{{ \Illuminate\Support\Carbon::parse($row['date'])->translatedFormat('d M Y') }} {{ $row['reference'] }} {{ $row['description'] }} {{ __('app.fees.statement.types.'.$row['type']) }} {{ $row['debit'] > 0 ? number_format((float) $row['debit'], 2) : '' }} {{ $row['credit'] > 0 ? number_format((float) $row['credit'], 2) : '' }} {{ number_format((float) $row['balance'], 2) }}
{{ __('app.fees.statement.empty') }}
{{ __('app.fees.statement.totals') }} {{ number_format((float) $statement['totals']['debit'], 2) }} {{ number_format((float) $statement['totals']['credit'], 2) }} {{ number_format((float) $statement['totals']['closing'], 2) }}

{{ __('app.fees.statement.pending_title') }}

@forelse ($statement['pending'] as $pending) @empty @endforelse
{{ __('app.fees.fields.receipt_no') }} {{ __('app.fees.fields.invoice_no') }} {{ __('app.fees.fields.method') }} {{ __('app.fees.fields.amount') }} {{ __('app.fees.fields.paid_at') }}
{{ $pending['receipt_no'] }} {{ $pending['invoice_no'] ?? '—' }} {{ $pending['method'] }} {{ number_format((float) $pending['amount'], 2) }} {{ \Illuminate\Support\Carbon::parse($pending['paid_at'])->translatedFormat('d M Y, H:i') }}
{{ __('app.fees.statement.no_pending') }}
@if (count($statement['pending']) > 0)

{{ __('app.fees.statement.pending_note', ['total' => number_format((float) $statement['pending_total'], 2)]) }}

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