@push('css') @endpush
INCOME STATEMENT REPORT INCOME STATEMENT REPORT
{{--
--}}
{{--
--}} {{--
--}}
{{-- Start Report --}}
@php $netIncome=0; @endphp {{-- --}} {{-- --}} @php $totalexpense=0; @endphp {{-- @foreach ($ExpenseChart as $expense) @php $totalexpense+= ($this->getChartBalance(['dr_account_id'=> $expense->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_dr_balance)-($this->getChartBalance(['cr_account_id'=> $expense->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_cr_balance); @endphp @endforeach --}} {{-- --}} @php $totalIncome=0; @endphp {{-- @foreach ($IncomeChart as $income) @php $totalIncome+= ($this->getChartBalance(['cr_account_id'=> $income->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_cr_balance)-($this->getChartBalance(['dr_account_id'=> $income->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_dr_balance); @endphp @endforeach --}} {{-- --}}
Account Details Sub-Total Total
Sales
Opening Stock {{-- {{ $this->getStock(['start_date'=>$start_date,'end_date'=>$end_date])->opening_stock_amount}} --}}
Sales Amount{{$saleTotal}}
Sales Discount (-){{$saleDiscount}}
Cost of Goods (-) {{-- {{ $this->getStock(['start_date'=>$start_date,'end_date'=>$end_date])->cost_of_goods}} --}}
Closing Stock (-) {{-- {{ $this->getStock(['start_date'=>$start_date,'end_date'=>$end_date])->closing_stock_amount}} --}}
Gross Margin (+/-) - {{-- {{($saleTotal-$saleDiscount) - ($this->getStock(['start_date'=>$start_date,'end_date'=>$end_date])->cost_of_goods)}} --}}
Operating Expense
{{$expense->name}} {{$expense->amount}} {{ ($this->getChartBalance(['dr_account_id'=> $expense->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_dr_balance)-($this->getChartBalance(['cr_account_id'=> $expense->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_cr_balance)}}
Total Expense (-){{$totalexpense}}
Operating Income
{{ $income->name }} {{$income->amount}} {{ ($this->getChartBalance(['cr_account_id'=> $income->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_cr_balance)-($this->getChartBalance(['dr_account_id'=> $income->id,'start_date'=>$start_date,'end_date'=>$end_date])->current_dr_balance)}}
Total Income (+){{$totalIncome}}
Net Income (+/-) - {{-- {{($saleTotal-$saleDiscount) - ($this->getStock(['start_date'=>$start_date,'end_date'=>$end_date])->cost_of_goods)+ ($totalIncome-$totalexpense)}} --}}