@extends('layouts.app') @section('title') Statement of Financial Position @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

@foreach($project_names as $key => $project_name) {{ $project_name }} @if($key < count($project_names) - 1) , @endif @endforeach

Statement of Financial Position

As of {{date('d/m/Y', strtotime($date))}}
@foreach($currentAsset as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($bank as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($accountReceivable as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($otherCurrentAsset as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($fixedAsset as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($equity as $acc) @if($acc['sum'] != 0) @endif @endforeach @if($netIncome < 0) @else @endif @if($equities < 0) @else @endif @foreach($accountPayable as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($otherCurrentLiability as $acc) @if($acc['sum'] != 0) @endif @endforeach @foreach($longTermLiability as $acc) @if($acc['sum'] != 0) @endif @endforeach
ASSETS
CURRENT ASSETS
{{$acc['account']->name}} @if($acc['sum'] < 0) ({{number_format(abs($acc['sum']))}}) @else {{$acc['sum'] > 0? number_format($acc['sum']) : '-'}} @endif
{{$acc['account']->name}} @if($acc['sum'] < 0) ({{number_format(abs($acc['sum']))}}) @else {{$acc['sum'] > 0? number_format($acc['sum']) : '-'}} @endif
{{$acc['account']->name}} @if($acc['sum'] < 0) ({{number_format(abs($acc['sum']))}}) @else {{$acc['sum'] > 0? number_format($acc['sum']) : '-'}} @endif
{{$acc['account']->name}} @if($acc['sum'] < 0) ({{number_format(abs($acc['sum']))}}) @else {{$acc['sum'] > 0? number_format($acc['sum']) : '-'}} @endif
@if($asset < 0) ({{number_format(abs($asset))}}) @else {{$asset > 0? number_format($asset) : '-'}} @endif
NON CURRENT ASSETS
{{$acc['account']->name}} @if($acc['sum'] < 0) ({{number_format(abs($acc['sum']))}}) @else {{$acc['sum'] > 0? number_format($acc['sum']) : '-'}} @endif
@if($total < 0) ({{number_format(abs($total))}}) @else {{$total > 0? number_format($total) : '-'}} @endif
TOTAL ASSETS @if($asset < 0) ({{number_format(abs($asset))}}) @else {{$asset > 0? number_format($asset) : '-'}} @endif
EQUITY & LIABILITIES
EQUITY
{{$acc['account']->name}} @if($acc['sum'] > 0) ({{number_format(abs($acc['sum']))}}) @else {{number_format(abs($acc['sum']))}} @endif
NET INCOME({{number_format(abs($netIncome))}}) {{$netIncome > 0? number_format($netIncome) : '-'}}
({{number_format(abs($equities))}}) {{$equities > 0? number_format($equities) : '-'}}
LIABILITIES
CURRENT LIABILITIES
{{$acc['account']->name}} @if($acc['sum'] > 0) ({{number_format(abs($acc['sum']))}}) @else {{number_format(abs($acc['sum']))}} @endif
{{$acc['account']->name}} @if($acc['sum'] > 0) ({{number_format(abs($acc['sum']))}}) @else {{number_format(abs($acc['sum']))}} @endif
@if($total < 0) ({{number_format(abs($total))}}) @else {{$total > 0? number_format($total) : '-'}} @endif
NON CURRENT LIABILITIES
{{$acc['account']->name}} @if($acc['sum'] > 0) ({{number_format(abs($acc['sum']))}}) @else {{number_format(abs($acc['sum']))}} @endif
@if($total < 0) ({{number_format(abs($total))}}) @else {{$total > 0? number_format($total) : '-'}} @endif
@if($liability < 0) ({{number_format(abs($liability))}}) @else {{$liability > 0? number_format($liability) : '-'}} @endif
TOTAL EQUITY & LIABILITIES {{number_format($liability + $equities)}}
@stop @section('js') @stop