@vite('resources/css/app.css')
@if ($voucher->isDraft()){{ $slogan }}
{{ $voucher->voucher_no ?? '—' }}
{{ $voucher->type->label() }}
{{ __('app.accounts.vouchers.form.posted_details') }}
{{ __('app.accounts.fields.party_name') }}
| # | {{ __('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) }} | ||
{{ __('app.accounts.fields.narration') }}
{{ $voucher->narration }}
{{ __('app.accounts.vouchers.form.reversal_of') }}: {{ $voucher->reversalOf->voucher_no ?? '—' }}
{{ __('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
{{ __('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