@props(['demographyconfigId','result','rowid','moduleid']) @php use App\Models\Demography; $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $LabelValue=$result->$ColumnName; if($LabelValue) { $Results=DB::table('TemporaryFiles')->where('TemporaryFilesId',$LabelValue)->where('DeletedStatus',0)->get(['FileName','FilePath'])->first(); try { $filePath=$Results->FilePath; $fileName=$Results->FileName; } catch(\Exception $e) { $filePath=""; $fileName=""; } } @endphp
@if($filePath) {{$fileName}} @endif