@if($tempEntries->isEmpty())
No journal entries available.
@else
| Date |
Account Code |
Account Name |
Narration |
DR |
CR |
Status |
Action |
@foreach($tempEntries as $entry)
| {{ date('d/m/Y', strtotime($entry->date)) }} |
{{ $entry->account_type === 'main_accounts' ? optional($entry->account)->code : $entry->account_type }} |
{{ $entry->account_type === 'main_accounts' ? optional($entry->account)->account_name : 'Sub-account #' . $entry->account_id }} |
{{ $entry->narration }} |
{{ $entry->tr_code === 'DR' ? number_format($entry->amount, 2) : '' }} |
{{ $entry->tr_code === 'CR' ? number_format($entry->amount, 2) : '' }} |
Open Journal |
|
@endforeach
@endif