@extends('layouts.app') @section('title', 'Journal Entry') @section('content')

Journal Entry — {{ $item->voucher->voucher_number ?? '' }}

Entry Date{{ $item->entry_date }}
Voucher{{ $item->voucher->voucher_number ?? '' }} ({{ $item->voucher->voucher_type ?? '' }})
Narration{{ $item->narration }}
Lines
@foreach($item->lines as $line) @endforeach
AccountSub-ledgerNarrationDebitCredit
{{ $line->account->code ?? '' }} — {{ $line->account->name ?? '' }} {{ $line->sub_ledger_type ? $line->sub_ledger_type . ' #' . $line->sub_ledger_id : '—' }} {{ $line->narration }} {{ number_format($line->debit, 2) }} {{ number_format($line->credit, 2) }}
@endsection