@props(['fieldslist','moduleid','paneltype'])
@php
use App\Models\Demography;
$closeTabDiv=0;
$prePanelId=0;
$preGroupId="";
$tabOpen =0;
$AddressFrameOpen=0;
$x=1;
//echo "panelType= $paneltype";
//echo "
";
// print_r($fieldslist);
//echo "
";
@endphp
@foreach($fieldslist as $field)
@php
$showTab="";
if($x==1)
{
$showTab="show active";
}
@endphp
@if($prePanelId!=$field->PanelId)
@if($closeTabDiv==1 && $paneltype==1)
@elseif($closeTabDiv==1 && $paneltype==0)
@endif
@if($paneltype==1)
@elseif($paneltype==0)
@endif
@php
$closeTabDiv=1;
$tabOpen=1;
$prePanelId=$field->PanelId;
@endphp
@endif
@php
if($preGroupId!=$field->GroupId && $AddressFrameOpen==1)
{
$AddressFrameOpen=0;
echo "";
}
if($preGroupId!=$field->GroupId && trim($field->GroupId))
{
$preGroupId=$field->GroupId;
try
{
$AddressFrameName=explode("Country",$field->ColumnName);
$AddressFrameName=$AddressFrameName[0];
}
catch(\exception $e)
{
$AddressFrameName="Address";
}
@endphp
@elseif($closeTabDiv==1 && $paneltype==0)
@endif