@extends('layouts.master') @section('title', 'Income Statment Entry | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.income statement')) @section('css') @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.income statement') }}
{{ __('basic.new entry') }} {{ __('basic.print') }} {{ __('basic.search filter') }}
{{ __('basic.income statement') }}
{{ $company_name }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}
{{ __('basic.currency') }} {{ $system_currency->name }}
{{ __('basic.account') }} {{ __('basic.total amount') }}
@php $total_all_balance_income = 0; $total_all_balance_expenses = 0; @endphp @foreach ($accounts as $item)
{{$item->name }}
@php $total_amount = 0; @endphp @foreach ($item->childs as $item_acc) @if(count($item_acc->childs)) @include('invoice/acc/reports.manageChild',['childs' => $item_acc->childs, 'date_serc' => $date_serc, 'day_srch' => $day_srch]) @endif @endforeach
{{ $item_acc->name }}
{{ __('basic.total') }} @php $get_total_amount_all_child = get_total_acc_childs($item->id, $date_serc, $day_srch); @endphp @if ($item->code == 4) @php $total_all_balance_income += $get_total_amount_all_child; @endphp @else @php $total_all_balance_expenses += $get_total_amount_all_child; @endphp @endif @php @endphp {{ $get_total_amount_all_child }}
@endforeach
{{ __('basic.net income') }} {{ $total_all_balance_income - $total_all_balance_expenses}}
@endsection @section('js') {{-- data table --}} @endsection