@php use App\Models\Articles; @endphp @inject('carbon', 'Carbon\Carbon') @extends('layouts.app_export',['dashBoardTitle'=>$page_title]) @section('script') @endsection @section('content')
{{$company->companyRelationShip->taxpayer}} TRN:{{$company->companyRelationShip->tax_registration_number}} Tax Period:{{$company->from}} to {{$company->to}}

{{$table_title}}

@foreach($titles as $title) @endforeach @php $total = 0; @endphp @forelse($articleData as $article) @if($article_type == 'article26') @php $data = json_decode($article->data); $total += $data->gain ? $data->gain : 0; @endphp @elseif($article_type == 'article37') @php $data = json_decode($article->data); $total += @$data->tax_losses_transfer; $remainingAmount = @$data->cf; @endphp @elseif($article_type == 'losses_received') @php $data = json_decode($article->data); $total += @$data->set_off_in_current_tax_period; @endphp @elseif($article_type == 'article47') @php $data = json_decode($article->data); $total += $data->ftc_claimed; $parameter = "update"; @endphp @if(empty($article->deleted_at)) @endif @elseif($article_type == 'article61') @php $optionType = ""; @endphp @php $data = json_decode($article->data); $article2 = Articles::find($data->assets); $articleData = json_decode($article2->data); $amountValue = 0; @endphp @if($articleData->property_type == "Financial Assets" || $articleData->property_type == "Financial Liabilities") @php $amountValue = @$data->gain_loss; @endphp @elseif($articleData->property_type == "Immovable Property") @if(isset($data->option_type)) @if($data->option_type == "1") @php $optionType = "Valuation Method"; $amountValue = @$data->gain_to_be_exclude_opt1; @endphp @elseif($data->option_type == "2") @php $optionType = "Time apportionment method"; $amountValue = @$data->gain_to_be_exclude_opt2; @endphp @endif @endif @elseif($articleData->property_type == "Intangible Assets") @php $amountValue = @$data->gain_to_be_exclude; @endphp @endif @php $total += @$amountValue; @endphp > @elseif($article_type == 'article23') @php $data = json_decode($article->data); @endphp @else @endif @empty @endforelse @if($article_type != 'article23') @endif @if($article_type == 'article23' && !empty($titles_more)) @foreach($titles_more as $title) @endforeach @forelse($articleData as $article) @php $data = json_decode($article->data); @endphp @empty @endforelse @endif
@endsection