@extends(!$download ? 'layouts.app' : 'layouts.app_with_out_nav') @section('content')
@if(!$download) @endif
{{ __(trans('BALANCE SHEET'))}}
@if(!$download) @endif
@if (session('status')) @endif
@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 $keyItem => $items) @endforeach @php $totalAmount = round(abs($item_total),2); @endphp @if($key == "liabilites") @php $totalAmount = round(abs($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)}}
{{trans('United Arab Emirates')}}
{{trans('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 @csrf
{{number_format(abs(round(floatval($items->debit_value),2)),2)}}
@endif
@endif
@csrf
Profit and Loss from account {{number_format($profit_loss,2)}}
@if(!$download) @endif
Total {{ucfirst($key)}} {{number_format(round(abs($totalAmount),2),2)}}
Total Difference (Asset - Liability) {{number_format(round(abs($total_assets_value) - abs($total_liability_value),2),2)}}
@if(!$download) @endif @endsection