@php
$fields = [
'Integrity' => $site->integrity,
'Value' => $site->value,
'Priorities' => $site->priorities,
'History' => $site->history,
'Physical Integrity' => $site->physical_integrity,
'Physical Features' => $site->physical_features,
'Structural Integrity' => $site->structural_integrity,
'Historic Fabric' => $site->historic_fabric,
'Authentic Design' => $site->authentic_design,
'Authentic Setting' => $site->authentic_setting,
'Authentic Material' => $site->authentic_material,
'Demographic Growth' => $site->demographic_growth,
];
$validFields = array_filter($fields, function($content) {
return trim($content) !== '
';
});
@endphp
@if(count($validFields) > 0)
@foreach($validFields as $title => $content)
{{ $title }}:
{!! $content !!}
@endforeach
@else
No Data Found
@endif
@php
$fields = [
'Keep Watch' => $site->keep_watch,
'Budget' => $site->budget,
'Long Term Plan' => $site->long_plan,
'Medium Term Plan' => $site->medium_plan,
'Short Term Plan' => $site->short_plan,
'Financial Plan' => $site->financial_plan,
'Management Plan' => $site->management_plan,
'Maintenance Strategy' => $site->maintenance_strategy,
'Special Treatment & Care' => $site->special_care,
'Intervension' => $site->intervension,
'Interpretations of the Ruins' => $site->interpretation,
'Preventive Action' => $site->preventive_action,
'Lack of Maintenance' => $site->lack_maintenance,
'Disaster Hazarad Plan' => $site->disaster_plan,
'Education & Research' => $site->edu_research,
'Tourism' => $site->tourism,
'Typology' => $site->typology,
'Condition' => $site->condition,
'Conservation Plan' => $site->conservation_plan,
'Degree of Intervension' => $site->degree_intervension,
'Social Impact of Tourism' => $site->social_impact,
'Over Utilization of Historic Center' => $site->over_utilization,
];
$validFields1 = array_filter($fields, function($content) {
return trim($content) !== '
';
});
@endphp
@if(count($validFields1) > 0)
@foreach($validFields1 as $title => $content)
{{ $title }}:
{!! $content !!}
@endforeach
@else
No Data Found
@endif
Gallery
@if ($media)
@foreach ($media as $img)
{{ $img->title }}
@endforeach
@else
No Image Found In Gallery
@endif
@if($site->relevant_doc)
Relevant Doc:
Click For Download
@else
Relevant Doc:
No relevant document available.
@endif
@if($site->monitoring_reporting)
Systematic Monitoring & Reporting Doc:
Click For Download
@else
Systematic Monitoring & Reporting Doc:
No Systematic Monitoring & Reporting document available.
@endif
@if($site->planning_action)
Planning & Action Doc:
Click For Download
@else
Planning & Action Doc:
No Planning & Action document available.
@endif
@if($site->technical_assistance)
Technical Assistance/World Heritage Fund Doc:
Click For Download
@else
Technical Assistance/World Heritage Fund Doc:
No Technical Assistance/World Heritage Fund document available.
@endif
@if($site->initial_survey)
Initial Survey Doc:
Click For Download
@else
Initial Survey Doc:
No Initial Survey document available.
@endif
@if($site->execution_work)
Execution of Works Doc:
Click For Download
@else
Execution of Works Doc:
No Execution of Works document available.
@endif
@if($site->annual_plan)
Revised Work Programme & Next Annual Plan Doc:
Click For Download
@else
Revised Work Programme & Next Annual Plan Doc:
No Revised Work Programme & Next Annual Plan document available.
@endif
@if($site->master_plan)
Conservation Master Plan:
Click For Download
@else
Conservation Master Plan:
No Conservation Master Plan document available.
@endif
@if($site->publication || $site->publication_text != '
')
Publication:
@if($site->publication_text != '
')
{!! $site->publication_text !!}
@endif
@if($site->publication)
@foreach(explode(',', $site->publication) as $publication)
@php
$fileName = pathinfo($publication, PATHINFO_FILENAME);
$extension = pathinfo($publication, PATHINFO_EXTENSION);
@endphp
@if(in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']))
 }})
@else
Click For Download ({{ $fileName }}.{{ $extension }})
@endif
@endforeach
@endif
@else
Publication:
No document available.
@endif
@if($site->archives || $site->archive_text != '
')
Archives:
@if($site->archive_text != '
')
{!! $site->archive_text !!}
@endif
@if($site->archives)
@foreach(explode(',', $site->archives) as $archive)
@php
$fileName = pathinfo($archive, PATHINFO_FILENAME);
$extension = pathinfo($archive, PATHINFO_EXTENSION);
@endphp
@if(in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']))
 }})
@else
Click For Download ({{ $fileName }}.{{ $extension }})
@endif
@endforeach
@endif
@else
Archives:
No document available.
@endif
@if($site->documentory || $site->documentory_text != '
')
Documentory:
@if($site->documentory_text != '
')
{!! $site->documentory_text !!}
@endif
@if($site->documentory)
@foreach(explode(',', $site->documentory) as $documentory)
@php
$fileName = pathinfo($documentory, PATHINFO_FILENAME);
$extension = pathinfo($documentory, PATHINFO_EXTENSION);
@endphp
@if(in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']))
 }})
@else
Click For Download ({{ $fileName }}.{{ $extension }})
@endif
@endforeach
@endif
@else
Documentory:
No document available.
@endif