{{ $count++ }}
|
JE-0000{{ $transaction->transaction_id }}
|
{{ $transaction->entryDate }}
|
{{ $transaction->description}}
|
@foreach ($entries as $entry )
@if ($entry->transaction_no == $transaction->transaction_id)
@if ($count_transaction == 1)
@foreach ($glAccounts as $glAccount)
@foreach ($accounts as $account)
@if ($entry->accountId == $account->id && $account->parentAccountId == $glAccount->id)
{{$glAccount->name}}
@endif
@endforeach
@endforeach
|
@foreach ($accounts as $account)
@if ($entry->accountId == $account->id)
{{$account->name}}
@endif
@endforeach
|
${{$entry->debit}}
|
${{$entry->credit}}
|
@endif
@endif
@endforeach
@foreach ($users as $user )
@if ($user->id == $transaction->userId)
{{$user->username}}
@endif
@endforeach
|
|
@foreach ($entries as $entry )
@if ($entry->transaction_no == $transaction->transaction_id)
@if ($count_transaction == 2 && $count_entry == $entry->id)
@foreach ($glAccounts as $glAccount)
@foreach ($accounts as $account)
@if ($entry->accountId == $account->id && $account->parentAccountId == $glAccount->id)
{{$glAccount->name}}
@endif
@endforeach
@endforeach
|
@foreach ($accounts as $account)
@if ($entry->accountId == $account->id)
{{$account->name}}
@endif
@endforeach
|
${{$entry->debit}}
|
${{$entry->credit}}
|
@endif
@endif
@endforeach
@endforeach