@extends('layouts.app') @section('style') @stop @section('content') @include('reports.modal')
{!!company()['name']!!}
@lang('menu.IncomeStatement')
{{convertDate(now())}}
@lang('layout.Total')
@lang('layout.Income') {{currency()->format($totalIncome,getRelatedCurrencyCode())}}
@foreach($income as $accountRow) @if($accountRow['Amount'] != 0 || !empty($accountRow['children'])) @endif @if(!empty($accountRow['children']) && getShowSubAccount() !="false") @foreach($accountRow['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
@if(!empty($accountRow['children'])) {{myRound($accountRow['total'])}} @endif
{{$accountRow['AccountName']}} {{myRound($accountRow['Amount']) }}
@if(!empty($fc['children'])) {{myRound($fc['total'])}} @endif
{{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }}
@if(!empty($sc['children'])) {{myRound($sc['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(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') : {{myRound($tc['total'])}} @endif
@lang('layout.TotalIncome') {{currency()->format($totalIncome,getRelatedCurrencyCode())}}
@lang('layout.CostOfGoodSold') {{currency()->format($totalCostOfGoodSold,getRelatedCurrencyCode())}}
@foreach($costOfGoodSold as $accountRow) @if($accountRow['Amount'] != 0 || !empty($accountRow['children'])) @endif @if(!empty($accountRow['children']) && getShowSubAccount() !="false") @foreach($accountRow['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
@if(!empty($accountRow['children'])) {{myRound($accountRow['total'])}} @endif
{{$accountRow['AccountName']}} {{myRound($accountRow['Amount']) }}
@if(!empty($fc['children'])) {{myRound($fc['total'])}} @endif
{{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }}
@if(!empty($sc['children'])) {{myRound($sc['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(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') : {{myRound($tc['total'])}} @endif
@lang('layout.TotalCostOfGoodSold') {{currency()->format($totalCostOfGoodSold,getRelatedCurrencyCode())}}

@lang('layout.GrossProfit')

{{currency()->format($grossProfit,getRelatedCurrencyCode())}}
@lang('layout.Expense') {{currency()->format($totalExpense,getRelatedCurrencyCode())}}
@foreach($expense as $accountRow) @if($accountRow['Amount'] != 0 || !empty($accountRow['children'])) @endif @if(!empty($accountRow['children']) && getShowSubAccount() !="false") @foreach($accountRow['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
@if(!empty($accountRow['children'])) {{myRound($accountRow['total'])}} @endif
{{$accountRow['AccountName']}} {{myRound($accountRow['Amount']) }}
@if(!empty($fc['children'])) {{myRound($fc['total'])}} @endif
{{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }}
@if(!empty($sc['children'])) {{myRound($sc['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(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') : {{myRound($tc['total'])}} @endif
@lang('layout.TotalExpenses') {{currency()->format($totalExpense,getRelatedCurrencyCode())}}
@lang('layout.OtherExpense') {{currency()->format($totalOtherExpense,getRelatedCurrencyCode())}}
@foreach($otherExpense as $accountRow) @if($accountRow['Amount'] != 0 || !empty($accountRow['children'])) @endif @if(!empty($accountRow['children']) && getShowSubAccount() !="false") @foreach($accountRow['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
@if(!empty($accountRow['children'])) {{myRound($accountRow['total'])}} @endif
{{$accountRow['AccountName']}} {{myRound($accountRow['Amount']) }}
@if(!empty($fc['children'])) {{myRound($fc['total'])}} @endif
{{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }}
@if(!empty($sc['children'])) {{myRound($sc['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(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') : {{myRound($tc['total'])}} @endif
@lang('layout.TotalOtherExpenses') {{currency()->format($totalOtherExpense,getRelatedCurrencyCode())}}
@lang('layout.OtherIncome') {{currency()->format($totalOtherIncome,getRelatedCurrencyCode())}}
@foreach($otherIncome as $accountRow) @if($accountRow['Amount'] != 0 || !empty($accountRow['children'])) @endif @if(!empty($accountRow['children']) && getShowSubAccount() !="false") @foreach($accountRow['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
@if(!empty($accountRow['children'])) {{myRound($accountRow['total'])}} @endif
{{$accountRow['AccountName']}} {{myRound($accountRow['Amount']) }}
@if(!empty($fc['children'])) {{myRound($fc['total'])}} @endif
{{$key+1}} {{$fc['AccountName']}} {{myRound($fc['Amount']) }}
@if(!empty($sc['children'])) {{myRound($sc['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(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') : {{myRound($tc['total'])}} @endif
@lang('layout.TotalOtherIncome') {{currency()->format($totalOtherIncome,getRelatedCurrencyCode())}}

@lang('layout.NetProfit')

{{currency()->format($netProfit,getRelatedCurrencyCode())}}
@stop @include('groupCompanyFilter.select') @include('print.modal') @push('scripts') @endpush