@extends('layouts.main_without_top_button') @section('title') Income Statement @stop @section('navigation') @stop @section('contentinner')
PRINT EXPORT
{{--*/ $total_dr = 0 /*--}} {{--*/ $total_cr = 0 /*--}} @foreach($assets as $asset) @if(number_format($asset['amount'])!=0) {{--*/ $total_dr += $asset['amount'] /*--}} @endif @endforeach @foreach($liabilities as $liability) @if(number_format($liability['amount'])!=0) {{--*/ $total_cr += $liability['amount'] /*--}} @endif @endforeach @foreach($incomes as $income) @if(number_format($income['amount']) !=0) {{--*/ $total_cr += $income['amount'] /*--}} @endif @endforeach @foreach($expenses as $expense) @if($expense['amount'] > 0) {{--*/ $total_dr += $expense['amount'] /*--}} @endif @endforeach
Trial Balance
AS OF {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
{{$asset['account']}} {{number_format($asset['amount'],2)}}
{{$liability['account']}} {{number_format($liability['amount'],2)}}
{{$income['account']}} {{number_format($income['amount'],2)}}
{{$expense['account']}} {{number_format($expense['amount'],2)}}
{{number_format($total_dr,2)}} {{number_format($total_cr,2)}}


{{--*/ $total_income = 0 /*--}} @foreach($incomes as $income) @if(number_format($income['amount']) !=0) {{--*/ $total_income += $income['amount'] /*--}} @endif @endforeach {{--*/ $total_direct_expense = 0 /*--}} @foreach($direct_expenses as $direct_expense) @if($direct_expense['amount'] > 0) {{--*/ $total_direct_expense += $direct_expense['amount'] /*--}} @endif @endforeach
{{--*/ $gross_income = $total_income-$total_direct_expense /*--}}
{{--*/ $total_expenses = 0 /*--}} @foreach($indirect_expenses as $expense) @if($expense['amount'] > 0) {{--*/ $total_expenses += $expense['amount'] /*--}} @endif @endforeach {{--*/ $net_income = $total_income-$total_expenses /*--}}
Income Statement
For From {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} To {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
Revenues
{{$income['account']}} {{number_format($income['amount'],2)}}
Total Revenue {{number_format($total_income,2)}}
Direct Expenses
{{$direct_expense['account']}} {{number_format($direct_expense['amount'],2)}}
Total Direct Expenses {{number_format($total_direct_expense,2)}}
Gross Income {{number_format($gross_income,2)}}
Indirect Expenses
{{$expense['account']}} {{number_format($expense['amount'],2)}}
Total Expenses {{number_format($total_expenses,2)}}
Net Income {{number_format($net_income,2)}}


Retained Earning Statement
For From {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} To {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
Retained Earnings ,{{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} 0
Add:Net Income ,{{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}} {{number_format($net_income,2)}}
{{number_format($net_income,2)}}
Less:Dividends 0
Retained Earnings ,{{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}} {{number_format($net_income,2)}}


{{--*/ $total_asset = 0 /*--}} @foreach($assets as $asset) {{--*/ $total_asset += $asset['amount'] /*--}} @endforeach {{--*/ $total_liabilities = 0 /*--}} @foreach($liabilities as $liability) {{--*/ $total_liabilities += $liability['amount'] /*--}} @endforeach {{--*/ $total_equities = 0 /*--}} @foreach($equities as $equity) {{--*/ $total_equities += $equity['amount'] /*--}} @endforeach {{--*/ $total_equities += $net_income /*--}}
Balance Sheet
AS OF {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
{{$asset['account']}} {{number_format($asset['amount'],2)}}
Total Assets {{number_format($total_asset,2)}}
{{$liability['account']}} {{number_format($liability['amount'],2)}}
Total Liabilities {{number_format($total_liabilities,2)}}
{{$equity['account']}} {{number_format($equity['amount'],2)}}
Retained earning, {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}} {{number_format($net_income,2)}}
Total Stockholders' Equity {{number_format($total_equities,2)}}
Total Liabilities & Stockholders' Equity {{number_format($total_equities+$total_liabilities,2)}}


@stop