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

outgoing

{{--
--}}
@include('journals.debitor.navbar')
outgoing
    @foreach ($currency as $row)
  • {{ $row->name }} {{ $data->where('currency_id', $row->id)->sum('outgoing') }}
  • @endforeach
Income
    @foreach ($currency as $row)
  • {{ $row->name }} {{ $data->where('currency_id', $row->id)->sum('income') }}
  • @endforeach
Balance
    @foreach ($currency as $row) @php $out = $data ->where('currency_id', $row->id) ->sum('outgoing'); $in = $data ->where('currency_id', $row->id) ->sum('income'); @endphp
  • @if ($in > $out) {{ $in - $out }} @else {{ $in - $out }} @endif   {{ $row->name }}
  • @endforeach
{{-- end of title --}}
@include('journals.debitor.income-modal') @include('journals.debitor.outgoing-model') @endsection @section('pageJs') @endsection