Sarafi/Bank
{{--
--}}
@include('journals.banker.navbar')
@foreach ($currency as $row)
- {{ $row->title_dr }} {{ $bankerJournal->where('currency_id', $row->id)->sum('income') }}
@endforeach
@foreach ($currency as $row)
- {{ $row->title_dr }} {{ $bankerJournal->where('currency_id', $row->id)->sum('outgoing') }}
@endforeach
@foreach ($currency as $row)
@php
$out=$bankerJournal->where('currency_id', $row->id)->sum('outgoing');
$in=$bankerJournal->where('currency_id', $row->id)->sum('income');
@endphp
-
@if($in>$out)
{{ $out-$in }}
@else
{{ $out-$in }}
@endif
{{ $row->title_dr }}
@endforeach