@extends('layouts.app')
@section('content')
@if (session('status'))
{{ session('status') }}
@endif
{{$companyDetails->taxpayer}}
|
United Arab Emirates
|
|
Statement of Total Comprehensive Income
|
|
|
|
Amount |
|
|
@php
$headingArray = array();
@endphp
@foreach($pl_template as $templates)
@php
$headingArray[] = $templates->name;
@endphp
{{$templates->name}} |
|
@php
$totalamount = 0;
@endphp
@foreach($templates->innerData as $template)
@if(count($template->report) > 0)
@if($template->getValue($id,$template->report[0],$companyDetails->id))
{{$template->name}} |
{{$template->getValue($id,$template->report[0],$companyDetails->id)}} |
@php
$totalamount += $template->getValue($id,$template->report[0],$companyDetails->id);
@endphp
@endif
@endif
@endforeach
@php
$headingArray[$templates->name] = $totalamount;
@endphp
@if($loop->iteration == 2)
@php
$grossProfit = $headingArray['Revenue'] - $headingArray['Cost of revenue'];
@endphp
Gross profit |
{{$grossProfit}} |
@endif
@if($loop->iteration == 5)
@php
$operatingProfit = $grossProfit - $headingArray['Administrative & general expenses'] - $headingArray['Management remunerations'] - $headingArray['Depreciation - indirect'];
@endphp
Operating profit |
{{$operatingProfit}} |
@endif
@if($loop->iteration == $loop->last)
Net profit/(loss) for the year |
{{$operatingProfit - $headingArray['Finance cost'] + $headingArray['Other income']}} |
@endif
@endforeach
@endsection