outgoing
-
@foreach ($currency as $row)
- {{ $row->name }} {{ $debetorJournal->where('currency_id', $row->id)->sum('outgoing') }} @endforeach
-
@foreach ($currency as $row)
- {{ $row->name }} {{ $debetorJournal->where('currency_id', $row->id)->sum('income') }} @endforeach
-
@foreach ($currency as $row)
@php
$out = $debetorJournal
->where('currency_id', $row->id)
->sum('outgoing');
$in = $debetorJournal
->where('currency_id', $row->id)
->sum('income');
@endphp
- @if ($in > $out) {{ $in - $out }} @else {{ $in - $out }} @endif {{ $row->name }} @endforeach