{{strtoUpper($companyDetails->taxpayer)}} |
United Arab Emirates |
Statement of Financial Position |
@php
$total_type = 0;
$total_assets_value = 0;
$total_liability_value = 0;
@endphp
@foreach($trialBalanceBSPL as $key => $trial)
{{ucfirst($key)}} |
@php
$item_total = $total_type;
@endphp
@foreach($trial as $items)
{{$items->section_name}} |
@if($key == "liabilites")
@if(round((int)$items->credit_value))
@php
$item_total += round(floatval($items->credit_value),2);
@endphp
@if($items->debit_value !="" && is_numeric((int)$items->debit_value))
{{number_format(abs(round(floatval($items->credit_value),2)),2)}}
@else
{{number_format(abs(round(floatval($items->credit_value),2)),2)}}
@endif
@endif
@endif
@if($key == "assets")
@if($items->debit_value !="" && is_numeric((int)$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
$totalAmount = round($item_total,2);
@endphp
@if($key == "liabilites")
Profit and Loss from account |
{{number_format($profit_loss,2)}} |
@php
$totalAmount = round($item_total + $profit_loss,2);
@endphp
@endif
@if(!$download)
@endif
|
Total {{ucfirst($key)}} |
{{number_format($totalAmount,2)}} |
@if($key == "assets")
@php
$total_assets_value = $totalAmount;
@endphp
@endif
@if($key == "liabilites")
@php
$total_liability_value = $totalAmount;
@endphp
@endif
@endforeach
Total Difference (Asset - Liability) |
{{$total_assets_value - $total_liability_value}} |