@extends('layouts.admin') @section('title', 'Voucher Details') @section('content') @php $debit = (float) $voucher->entries->sum('debit'); $credit = (float) $voucher->entries->sum('credit'); @endphp
Narration: {{ $voucher->narration }}
@endif| Account | Debit | Credit | Memo |
|---|---|---|---|
| {{ $e->account?->account_name }}@if ($e->account?->account_code) ({{ $e->account->account_code }})@endif | {{ (float) $e->debit > 0 ? number_format($e->debit, 2) : '' }} | {{ (float) $e->credit > 0 ? number_format($e->credit, 2) : '' }} | {{ $e->memo }} |
| Total | {{ number_format($debit, 2) }} | {{ number_format($credit, 2) }} |