@php use App\Enums\InformationMasterialType; @endphp
@foreach ($otherFacilitiesElements as $index => $facility)
@foreach (listImage($facility) as $image)
@endforeach
@foreach (listImage($facility, true) as $image)
@endforeach
{!! setTextDefault(textLocale('heading', $facility, $lang)) !!} {!! setTextDefault(textLocale('heading_sp', $facility, $lang)) !!}
{!! setTextDefault(textLocale('descriptive', $facility, $lang)) !!} {!! setTextDefault(textLocale('descriptive_sp', $facility, $lang)) !!}
@php $informationMaterial = getInformationMaterial( $facility['other_facility_information_details'], $lang, ); @endphp @if ($informationMaterial) @foreach ($informationMaterial as $index => $information)
{!! fieldPropertyValue('heading', $information) !!} {!! fieldPropertyValue('heading_sp', $information) !!} @switch(fieldPropertyValue('type', $information)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive', $information) !!}
{!! fieldPropertyValue('descriptive_sp', $information) !!}
@break @case(InformationMasterialType::BUTTON) {!! fieldPropertyValue('button_name', $information) !!} {!! fieldPropertyValue('button_name_sp', $information) !!} @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive', $information)) {!! fieldPropertyValue('pdf_descriptive', $information) !!} @endif @if (fieldPropertyValue('pdf_descriptive_sp', $information)) {!! fieldPropertyValue('pdf_descriptive_sp', $information) !!} @endif @break @endswitch
@endforeach @endif
@endforeach