@extends('layouts.app') @section('style') @stop @section('content')
@lang('menu.IncomeStatement')    (   {{getHomeCurrency()['name']}})
@if(getFinancialClass() =='true') @permission('financialClass-list')
@endpermission @endif
@permission(['financialReport-list']) @endpermission @permission('financialReport-export') @endpermission
    • @lang('layout.OrdinaryIncome/Expense')
      • @lang('layout.Income')
          @foreach($income as $incomeAccount) @if($incomeAccount['Amount'] != 0 || !empty($incomeAccount['children'])) @endif @if(!empty($incomeAccount['children']) && getShowSubAccount() !="false") @foreach($incomeAccount['children'] as $key=>$fc) @if($fc['Amount'] != 0 || !empty($fc['children'])) @endif @if(!empty($fc['children'])) @foreach($fc['children'] as $key1=>$sc) @if($sc['Amount'] != 0 || !empty($sc['children'])) @endif @if(!empty($sc['children'])) @foreach($sc['children'] as $key2=>$tc) @if($tc['Amount'] != 0 || !empty($tc['children'])) @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
          {{$incomeAccount['AccountName']}} {{myRound($incomeAccount['Amount']) }} @if(!empty($incomeAccount['children']))
          @lang('layout.Total') {{$incomeAccount['AccountName']}} :{{myRound($incomeAccount['total'])}} @endif
                {{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }} @if(!empty($fc['children']))
          @lang('layout.Total') {{$fc['AccountName']}} :{{myRound($fc['total'])}} @endif
                     @if(App::isLocale('fa') || App::isLocale('pa')) {{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}} @endif {{$sc['AccountName']}}
          {{myRound($sc['Amount']) }} @if(!empty($sc['children']))
          @lang('layout.Total') {{$sc['AccountName']}} :{{myRound($sc['total'])}} @endif
                          @if(App::isLocale('fa') || App::isLocale('pa')) {{$key2+1}}-{{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}}-{{$key2+1}} @endif {{$tc['AccountName']}}
          {{myRound($tc['Amount']) }} @if(!empty($tc['children']))
          @lang('layout.Total') {{$tc['AccountName']}} :{{myRound($tc['total'])}} @endif
      • @lang('layout.TotalIncome') {{myRound($totalIncome)}}
      • @lang('layout.CostOfGoodSold')
          @foreach($costOfGoodSold as $incomeAccount) @if($incomeAccount['Amount'] != 0 || !empty($incomeAccount['children'])) @endif @if(!empty($incomeAccount['children']) && getShowSubAccount() !="false") @foreach($incomeAccount['children'] as $key=>$fc) @if($fc['Amount'] != 0 || !empty($fc['children'])) @endif @if(!empty($fc['children'])) @foreach($fc['children'] as $key1=>$sc) @if($sc['Amount'] != 0 || !empty($sc['children'])) @endif @if(!empty($sc['children'])) @foreach($sc['children'] as $key2=>$tc) @if($tc['Amount'] != 0 || !empty($tc['children'])) @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
          {{$incomeAccount['AccountName']}} {{myRound($incomeAccount['Amount']) }} @if(!empty($incomeAccount['children']))
          @lang('layout.Total') {{$incomeAccount['AccountName']}} :{{myRound($incomeAccount['total'])}} @endif
                {{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }} @if(!empty($fc['children']))
          @lang('layout.Total') {{$fc['AccountName']}} :{{myRound($fc['total'])}} @endif
                     @if(App::isLocale('fa') || App::isLocale('pa')) {{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}} @endif {{$sc['AccountName']}}
          {{myRound($sc['Amount']) }} @if(!empty($sc['children']))
          @lang('layout.Total') {{$sc['AccountName']}} :{{myRound($sc['total'])}} @endif
                          @if(App::isLocale('fa') || App::isLocale('pa')) {{$key2+1}}-{{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}}-{{$key2+1}} @endif {{$tc['AccountName']}}
          {{myRound($tc['Amount']) }} @if(!empty($tc['children']))
          @lang('layout.Total') {{$tc['AccountName']}} :{{myRound($tc['total'])}} @endif
      • @lang('layout.TotalCostOfGoodSold') {{myRound($totalCostOfGoodSold)}}
      • @lang('layout.GrossProfit') {{myRound($grossProfit)}}
      • @lang('layout.Expense')
          @foreach($expense as $incomeAccount) @if($incomeAccount['Amount'] != 0 || !empty($incomeAccount['children'])) @endif @if(!empty($incomeAccount['children']) && getShowSubAccount() !="false") @foreach($incomeAccount['children'] as $key=>$fc) @if($fc['Amount'] != 0 || !empty($fc['children'])) @endif @if(!empty($fc['children'])) @foreach($fc['children'] as $key1=>$sc) @if($sc['Amount'] != 0 || !empty($sc['children'])) @endif @if(!empty($sc['children'])) @foreach($sc['children'] as $key2=>$tc) @if($tc['Amount'] != 0 || !empty($tc['children'])) @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
          {{$incomeAccount['AccountName']}} {{myRound($incomeAccount['Amount']) }} @if(!empty($incomeAccount['children']))
          @lang('layout.Total') {{$incomeAccount['AccountName']}} :{{myRound($incomeAccount['total'])}} @endif
                {{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }} @if(!empty($fc['children']))
          @lang('layout.Total') {{$fc['AccountName']}} :{{myRound($fc['total'])}} @endif
                     @if(App::isLocale('fa') || App::isLocale('pa')) {{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}} @endif {{$sc['AccountName']}}
          {{myRound($sc['Amount']) }} @if(!empty($sc['children']))
          @lang('layout.Total') {{$sc['AccountName']}} :{{myRound($sc['total'])}} @endif
                          @if(App::isLocale('fa') || App::isLocale('pa')) {{$key2+1}}-{{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}}-{{$key2+1}} @endif {{$tc['AccountName']}}
          {{myRound($tc['Amount']) }} @if(!empty($tc['children']))
          @lang('layout.Total') {{$tc['AccountName']}} :{{myRound($tc['total'])}} @endif
      • @lang('layout.TotalExpense') {{myRound($totalExpense)}}
    • @lang('layout.NetOrdinaryIncome') {{myRound($netOrdeinaryIncome)}}
    • @lang('layout.OtherIncome/Expense')
      • @lang('layout.OtherIncome')
          @foreach($otherIncome as $incomeAccount) @if($incomeAccount['Amount'] != 0 || !empty($incomeAccount['children'])) @endif @if(!empty($incomeAccount['children']) && getShowSubAccount() !="false") @foreach($incomeAccount['children'] as $key=>$fc) @if($fc['Amount'] != 0 || !empty($fc['children'])) @endif @if(!empty($fc['children'])) @foreach($fc['children'] as $key1=>$sc) @if($sc['Amount'] != 0 || !empty($sc['children'])) @endif @if(!empty($sc['children'])) @foreach($sc['children'] as $key2=>$tc) @if($tc['Amount'] != 0 || !empty($tc['children'])) @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
          {{$incomeAccount['AccountName']}} {{myRound($incomeAccount['Amount']) }} @if(!empty($incomeAccount['children']))
          @lang('layout.Total') {{$incomeAccount['AccountName']}} :{{myRound($incomeAccount['total'])}} @endif
                {{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }} @if(!empty($fc['children']))
          @lang('layout.Total') {{$fc['AccountName']}} :{{myRound($fc['total'])}} @endif
                     @if(App::isLocale('fa') || App::isLocale('pa')) {{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}} @endif {{$sc['AccountName']}}
          {{myRound($sc['Amount']) }} @if(!empty($sc['children']))
          @lang('layout.Total') {{$sc['AccountName']}} :{{myRound($sc['total'])}} @endif
                          @if(App::isLocale('fa') || App::isLocale('pa')) {{$key2+1}}-{{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}}-{{$key2+1}} @endif {{$tc['AccountName']}}
          {{myRound($tc['Amount']) }} @if(!empty($tc['children']))
          @lang('layout.Total') {{$tc['AccountName']}} :{{myRound($tc['total'])}} @endif
      • @lang('layout.TotalOtherIncome') {{myRound($totalOtherIncome)}}
      • @lang('layout.OtherExpense')
          @foreach($otherExpense as $incomeAccount) @if($incomeAccount['Amount'] != 0 || !empty($incomeAccount['children'])) @endif @if(!empty($incomeAccount['children']) && getShowSubAccount() !="false") @foreach($incomeAccount['children'] as $key=>$fc) @if($fc['Amount'] != 0 || !empty($fc['children'])) @endif @if(!empty($fc['children'])) @foreach($fc['children'] as $key1=>$sc) @if($sc['Amount'] != 0 || !empty($sc['children'])) @endif @if(!empty($sc['children'])) @foreach($sc['children'] as $key2=>$tc) @if($tc['Amount'] != 0 || !empty($tc['children'])) @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
          {{$incomeAccount['AccountName']}} {{myRound($incomeAccount['Amount']) }} @if(!empty($incomeAccount['children']))
          @lang('layout.Total') {{$incomeAccount['AccountName']}} :{{myRound($incomeAccount['total'])}} @endif
                {{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }} @if(!empty($fc['children']))
          @lang('layout.Total') {{$fc['AccountName']}} :{{myRound($fc['total'])}} @endif
                     @if(App::isLocale('fa') || App::isLocale('pa')) {{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}} @endif {{$sc['AccountName']}}
          {{myRound($sc['Amount']) }} @if(!empty($sc['children']))
          @lang('layout.Total') {{$sc['AccountName']}} :{{myRound($sc['total'])}} @endif
                          @if(App::isLocale('fa') || App::isLocale('pa')) {{$key2+1}}-{{$key1+1}}-{{$key+1}} @endif @if(App::isLocale('en')) {{$key+1}}-{{$key1+1}}-{{$key2+1}} @endif {{$tc['AccountName']}}
          {{myRound($tc['Amount']) }} @if(!empty($tc['children']))
          @lang('layout.Total') {{$tc['AccountName']}} :{{myRound($tc['total'])}} @endif
      • @lang('layout.TotalOtherExpenses') {{myRound($totalOtherExpense)}}
    • @lang('layout.NetOtherIncome') {{myRound($netOtherIncome)}}
    • @lang('layout.NetProfit') {{myRound($netProfit)}}
@endsection @include('print.modal') @include('groupCompanyFilter.select') @push('scripts') @endpush