@if($request->has('search'))
@endif
@foreach($result_from_db as $transaction)
@php
$total_debit = 0;
$total_credit = 0;
$creadit_accounts = [];
$debit_accounts = [];
foreach($transaction->getTransactiondetails as $account){
$value_debit=$account->debit_amount ?? 0;
$value_credit=$account->credit_amount ?? 0;
$total_debit += $value_debit;
$total_credit += $value_credit;
}
@endphp
@if($total_debit != 0 || $total_credit != 0 )
@endif
@endforeach
{{ $transaction->description }} | ||
---|---|---|
مدين | دائن | اسم الحساب |
@convert($value_debit) | @convert($value_credit) | {{ $account->description }} |
@convert($total_debit) | @convert($total_credit) | اجمالي الحركات |
@if($request->has('search'))
{{ __('messages.print') }}
@endif