@extends('master.app') @section('title', 'banker') @section('body')

Sarafi/Bank

{{--
--}}
@include('journals.banker.navbar')
WithDrow/به نام
    @foreach ($currency as $row)
  • {{ $row->title_dr }} {{ $bankerJournal->where('currency_id', $row->id)->sum('income') }}
  • @endforeach
Deposit/ جمع
    @foreach ($currency as $row)
  • {{ $row->title_dr }} {{ $bankerJournal->where('currency_id', $row->id)->sum('outgoing') }}
  • @endforeach
Balance
    @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
@include('journals.banker.income-modal') @include('journals.banker.outgoing-model') @endsection @section('pageJs') @endsection