@php
$i = 1;
$debitAmount = 0;
$creditAmount = 0;
@endphp
@if(isset($data['edit_journal_voucher_entries']) && count($data['edit_journal_voucher_entries']) > 0)
@foreach($data['edit_journal_voucher_entries'] as $key => $list)
{{ $i }} |
{{$list['account_name'] ?? ''}} |
@if($page == 0)
|
0 ? 'readonly' : '' }}> |
0 ? 'readonly' : '' }}> |
@else
{{$list['details_narration'] ?? ''}} |
{{$list['debit'] ?? ''}} |
{{$list['credit'] ?? ''}} |
@endif
|
@php
$debitAmount += preg_replace("/[^0-9.]/", "", (int) $list['debit']);
$creditAmount += preg_replace("/[^0-9.]/", "", (int) $list['credit']);
@endphp
@php $i++; @endphp
@endforeach
@endif
@if(isset($data['add_journal_voucher_entries']))
@foreach($data['add_journal_voucher_entries'] as $key => $list)
{{ $i }} |
{{$list['account_name'] ?? ''}} |
@if($page == 0)
|
0 ? 'readonly' : '' }}> |
0 ? 'readonly' : '' }}> |
@else
{{$list['details_narration'] ?? ''}} |
{{$list['debit'] ?? ''}} |
{{$list['credit'] ?? ''}} |
@endif
|
@php
$debitAmount += preg_replace("/[^0-9.]/", "", (int) $list['debit']);
$creditAmount += preg_replace("/[^0-9.]/", "", (int) $list['credit']);
@endphp
@php $i++; @endphp
@endforeach
@endif
@if(isset($data['add_journal_voucher_entries']) || (isset($data['edit_journal_voucher_entries']) && count($data['edit_journal_voucher_entries']) > 0))
|
|
TOTAL |
Debit: {{$debitAmount}} |
Credit: {{$creditAmount}} |
|
@else
No Data Found |
@endif