{{\Carbon\Carbon::parse($general_ledger->date)->toFormattedDateString()}} |
{{$general_ledger->document}} |
{{$general_ledger->amount}}-{{$general_ledger->currency_id}} -{{$account->currency_id}}-{{$general_ledger->exchange_rate}} |
@if($general_ledger->type=='DEBITED')
@if($account->balance =='DEBITED')
{{number_format(\App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate),2)}}
{{--*/ $dr_total += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
{{--*/ $balance -= \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
@else
{{number_format(\App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate),2)}}
{{--*/ $dr_total += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
{{--*/ $balance += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
@endif
|
|
@endif
@if($general_ledger->type=='CREDITED')
|
@if($account->balance =='DEBITED')
{{number_format(\App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate),2)}}
{{--*/ $cr_total += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
{{--*/ $balance += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
@else
{{number_format(\App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate),2)}}
{{--*/ $cr_total += \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
{{--*/ $balance -= \App\Logistics\Facades\Logistics::currencyConvertor($general_ledger->amount, $general_ledger->currency_id, $account->currency_id,$general_ledger->exchange_rate) /*--}}
@endif
|
@endif
{{number_format($balance,2)}}
{{--*/ $balance /*--}}
|
@endforeach