@php
$siteurl=$_SERVER['HTTP_HOST'];
//print_r($GetAppendableFieldList[0]);
//print_r($GetDropdownLists);
//print_r($ListBoxNamesIDs);
$LoggedUserId = Auth::user()->RefId;
//echo $display_name;
$userdetails = Auth::user();
try
{
$LoggedUser = $userdetails->name;
$DateFormat = $userdetails->DateFormat;
$TimeZone = $userdetails->TimeZone;
$TimeFormat = $userdetails->TimeFormat;
$GmtOffSet = $userdetails->GmtOffSet;
}
catch(\Exception $e)
{
$LoggedUser="Super Admin";
$DateFormat="d-m-Y";
$TimeZone="Asia/Kolkata";
$TimeFormat="H:i";
$GmtOffSet="";
}
@endphp
@if($GetAppendableFieldList[0]->DisplayType==1 || $GetAppendableFieldList[0]->DisplayType==11)
@endif
@if($GetAppendableFieldList[0]->DisplayType==2)
@php
$DropDownNameId=$GetAppendableFieldList[0]->DropDownNameId;
if(array_key_exists($DropDownNameId,$GetDropdownLists))
{
$listBoxVal=$GetDropdownLists[$DropDownNameId];
@endphp
@php
}
else
{
@endphp
@php
}
@endphp
@endif
@if($GetAppendableFieldList[0]->DisplayType=='15')
@endif
@if($GetAppendableFieldList[0]->DisplayType=='8')
@endif
@if($GetAppendableFieldList[0]->DisplayType=='9')
@endif
@if($GetAppendableFieldList[0]->DisplayType=='5')
@if(empty($ListBoxNamesIDs))
@else
@php
$DropDownNameId=$GetAppendableFieldList[0]->DropDownNameId;
//$ListBoxNamesIDVal=$ListBoxNamesIDs[$];
$listBoxVal=$GetDropdownLists[$DropDownNameId];
@endphp
@endif
@endif
@if($GetAppendableFieldList[0]->DisplayType == '6')
@php
$DropDownNameId=$GetAppendableFieldList[0]->DropDownNameId;
@endphp
@if(empty($ListBoxNamesIDs) || $DropDownNameId=='')
@else
@php
$ListBoxNamesIDVal=$DropDownNameId;
$listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal];
$display_name=explode(",",$display_name);
@endphp
@if(!array_key_exists($ListBoxNamesIDVal,$childList))
@foreach($listBoxVal as $listBoxKey=>$listBoxValue)
@php
if(in_array($listBoxKey,$display_name))
{
$checked="checked";
}
else
{
$checked="";
}
@endphp
@endforeach
@endif
@endif
@endif
@if($GetAppendableFieldList[0]->DisplayType == '4')
@php
$display_name=str_replace("/","-",$display_name);
$dateValue1=date('Y-m-d',strtotime($display_name));
@endphp
@endif
@if($GetAppendableFieldList[0]->DisplayType == '14')
@php
$display_name=str_replace("/","-",$display_name);
$dateValue1=date('Y-m-d H:i:ss',strtotime($display_name));
@endphp
@endif