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