@if($tempEntries->isEmpty())
No journal entries available.
@else
| Date |
Customer Code |
Customer Name |
Narration |
DR |
CR |
Status |
Action |
@foreach($tempEntries as $entry)
| {{ date('d/m/Y', strtotime($entry->date)) }} |
{{ $entry->customer->customer_code }} |
{{ $entry->customer->customer_account }} |
{{ $entry->narration }} |
{{ $entry->tr_code === 'DR' ? number_format($entry->amount, 2) : '' }} |
{{ $entry->tr_code === 'CR' ? number_format($entry->amount, 2) : '' }} |
@if($entry->status === 'Processed')
Processed
@else
Open Journal
@endif
|
@if($entry->status !== 'Processed')
@endif
|
@endforeach
@endif