{{ $project->name ?? 'Project' }}
{{ $project->city ?? '' }}
No: {{ $entry->entry_number }}
Date: {{ $entry->entry_date->format('Y-m-d') }}
Status: {{ ucfirst($entry->status) }}
@if($entry->posted_by)
Posted By: {{ optional(\App\Models\User::find($entry->posted_by))->name }}
@endif
Description: {{ $entry->description }}
@php $td=0; $tc=0; @endphp @foreach($entry->lines as $l) @php $td+=$l->debit_amount; $tc+=$l->credit_amount; @endphp @endforeach
Account Debit Credit
{{ $l->accountType->code }} — {{ $l->accountType->name }} {{ number_format($l->debit_amount,2) }} {{ number_format($l->credit_amount,2) }}
Total {{ number_format($td,2) }} {{ number_format($tc,2) }}