| {{strtoUpper($companyDetails->taxpayer)}} |
| United Arab Emirates |
| Statement of Financial Position |
@php
$total_type = 0;
$returnArray = array('total_income','total_expenses');
@endphp
@foreach($trialBalanceBSPL as $key => $trial)
| {{ucfirst($key)}} |
@php
$item_total = $total_type;
@endphp
@foreach($trial as $items)
| {{$items->section_name}} |
@if($key == "income")
@if($items->credit_value)
@php
$item_total += round(floatval($items->credit_value),2);
@endphp
{{number_format(abs(round(floatval($items->credit_value),2)),2)}}
@endif
@endif
@if($key == "expenses")
@if($items->debit_value)
@php
$item_total += round(floatval($items->debit_value),2);
@endphp
{{number_format(abs(round(floatval($items->debit_value),2)),2)}}
@endif
@endif
|
@endforeach
@php
$array_key = 'total_'.$key;
@endphp
@if($array_key == 'total_income')
@php
$returnArray['total_income'] = $item_total;
@endphp
@endif
@if($array_key == 'total_expenses')
@php
$returnArray['total_expenses'] = $item_total;
@endphp
@endif
@if(!$download)
|
|
@endif
| Total {{ucfirst($key)}} |
{{number_format(round($item_total,2),2)}} |
@endforeach
| Net Profit/Loss |
{{number_format(round($returnArray['total_income'] - $returnArray['total_expenses'],2),2)}} |