@extends('layouts.app') @section('title', 'Voucher #'.optional($voucher)->voucher_number) @section('breadcrumbs') @endsection @section('content')
{{ ucfirst($voucher->voucher_type ?? '') }} Voucher | {{ optional($voucher->voucher_date)->format('d M Y') ?? '' }}
| Account | Description | Debit | Credit |
|---|---|---|---|
| {{ $line->ledgerAccount->code ?? '' }} - {{ $line->ledgerAccount->name ?? 'N/A' }} | {{ $line->description ?? '' }} | {{ $line->debit > 0 ? number_format($line->debit, 2) : '-' }} | {{ $line->credit > 0 ? number_format($line->credit, 2) : '-' }} |
| No entries | |||
| Total | {{ number_format($voucher->total_debit ?? 0, 2) }} | {{ number_format($voucher->total_credit ?? 0, 2) }} | |
{{ $voucher->narration }}
{{ ucfirst($voucher->status ?? 'draft') }}
{{ $voucher->status === 'posted' ? 'Approved by '.$voucher->approver->name ?? 'System' : 'Awaiting approval' }}{{ $log->action ?? '' }}
{{ $log->created_at?->diffForHumans() ?? '' }}No audit entries
@endforelse