@extends(!$download ? 'layouts.app' : 'layouts.app_with_out_nav',['dashBoardTitle'=>'PROFIT & LOSS']) @section('buttons')
 TB  BS  TR
@endsection @section('content') @if($download) @endif
@endif
@if (session('status')) @endif
@if($download) @endif
PROFIT & LOSS
{{strtoUpper($companyDetails->taxpayer)}} T.R.NO :{{$companyDetails->tax_registration_number}} Tax Period: {{date('d-M-Y',strtotime(@$trialBalanceDetails->from))}} to {{date('d-M-Y',strtotime(@$trialBalanceDetails->to))}}
@php $totalIncome = 0; @endphp @if(count($incomes) > 0) @foreach($incomes as $income) @php $totalIncome += abs(round(floatval($income['credit_value']),2)); @endphp @if(abs(floatval($income['credit_value'])) > 0) @if(!$download) @endif @endif @endforeach @endif @if(!$download) @endif @php $totalExpense = 0; @endphp @foreach($expenses as $expense) @php $totalExpense += floatval(abs($expense['debit_value'])); @endphp @if(abs(round(floatval($expense['debit_value']),2)) > 0) @if(!$download) @endif @endforeach @if(!$download) @endif
{{trans('United Arab Emirates')}}
{{trans('Statement of Financial Position')}}
Income
{{$income['section_name']}} {{numbermillions(abs(floatval($income['credit_value'])))}}
@csrf
Total Income {{numbermillions($totalIncome)}}
Expense
{{$expense['section_name']}} {{numbermillions($expense['debit_value'])}}
@csrf @endif
Total Expense {{(numbermillions($totalExpense))}}
@if($totalIncome - $totalExpense > 0){{trans('Net Profit')}} @else {{trans('Net Loss')}} @endif {{numbermillions($totalIncome - $totalExpense)}}
@if(!$download) @endif @endsection