@vite('resources/css/app.css') @if ($voucher->isDraft())
{{ __('app.accounts.status.draft') }}
@elseif ($voucher->isReversed())
{{ __('app.accounts.status.reversed') }}
@endif

{{ $institutionName }}

{{ $slogan }}

{{ __('app.accounts.print.voucher_title') }}

{{ $voucher->voucher_no ?? '—' }}

{{ $voucher->type->label() }}

{{ __('app.accounts.vouchers.form.posted_details') }}

{{ __('app.accounts.fields.date') }}
{{ $voucher->voucher_date->translatedFormat('d M Y') }}
{{ __('app.accounts.fields.financial_year') }}
{{ $voucher->financialYear?->localizedName() ?? '—' }}
{{ __('app.accounts.fields.category') }}
{{ $voucher->category?->label() ?? '—' }}
{{ __('app.accounts.fields.reference') }}
{{ $voucher->reference_no ?? '—' }}
{{ __('app.accounts.fields.status') }}
{{ $voucher->status->label() }}

{{ __('app.accounts.fields.party_name') }}

{{ __('app.accounts.fields.party_name') }}
{{ $voucher->party_name ?? '—' }}
{{ __('app.accounts.fields.party_contact') }}
{{ $voucher->party_contact ?? '—' }}
@if ($voucher->campaign)
{{ __('app.accounts.fields.campaign') }}
{{ $voucher->campaign->localizedTitle() }}
@endif
{{ __('app.accounts.fields.amount') }}
{{ number_format((float) $voucher->amount, 2) }}
@if ($voucher->journalEntry)
{{ __('app.accounts.vouchers.form.entry_no') }}
{{ $voucher->journalEntry->entry_no }}
@endif
@foreach ($voucher->lines as $index => $line) @endforeach
# {{ __('app.accounts.fields.account') }} {{ __('app.accounts.fields.memo') }} {{ __('app.accounts.fields.debit') }} {{ __('app.accounts.fields.credit') }}
{{ $line->line_no ?? $index + 1 }} {{ $line->account?->code }} {{ $line->account?->localizedName() }} {{ $line->memo ?? '—' }} {{ (float) $line->debit > 0 ? number_format((float) $line->debit, 2) : '—' }} {{ (float) $line->credit > 0 ? number_format((float) $line->credit, 2) : '—' }}
{{ __('app.accounts.vouchers.form.totals') }} {{ number_format((float) $voucher->lines->sum('debit'), 2) }} {{ number_format((float) $voucher->lines->sum('credit'), 2) }}
@if ($voucher->narration)

{{ __('app.accounts.fields.narration') }}

{{ $voucher->narration }}

@endif @if ($voucher->reversalOf)

{{ __('app.accounts.vouchers.form.reversal_of') }}: {{ $voucher->reversalOf->voucher_no ?? '—' }}

@endif @if ($voucher->isReversed())

{{ __('app.accounts.status.reversed') }}

{{ $voucher->reverser?->name ?? '—' }} @if ($voucher->reversed_at) — {{ $voucher->reversed_at->translatedFormat('d M Y, H:i') }} @endif @if ($voucher->reversal) · {{ __('app.accounts.vouchers.form.reversal_entry') }}: {{ $voucher->reversal->voucher_no ?? '—' }} @endif

@endif @if ($voucher->poster || $voucher->creator)

{{ __('app.accounts.vouchers.form.created_by') }}: {{ $voucher->creator?->name ?? '—' }}

{{ __('app.accounts.vouchers.form.posted_by') }}: {{ $voucher->poster?->name ?? '—' }} @if ($voucher->posted_at) · {{ $voucher->posted_at->translatedFormat('d M Y, H:i') }} @endif

@endif
{{ __('app.accounts.print.prepared_by') }}
{{ __('app.accounts.print.checked_by') }}
{{ __('app.accounts.print.approved_by') }}