@php use App\Enums\InformationMasterialType; @endphp
@foreach ($otherFacilitiesElements as $facility) @if (!empty($facility)) @php $listImagePc = []; for ($i = 1; $i <= 4; $i++) { if (!empty($facility['image' . $i])) { $listImagePc[] = $facility['image' . $i]; } } @endphp
{{--
--}}
@if (count($listImagePc) < 1)
@else @for ($i = 0; $i < count($listImagePc); $i++)
@endfor @endif
{!! setTextDefault(textLocale('heading', $facility, $lang)) !!}
{!! setTextDefault(textLocale('descriptive', $facility, $lang)) !!}
@php $informationMaterial = getInformationMaterial($facility['other_facility_information_details'], $lang); @endphp @foreach ($informationMaterial as $index => $information)
{!! fieldPropertyValue('heading', $information) !!}
@switch(fieldPropertyValue('type', $information)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive', $information) !!}
@break @case(InformationMasterialType::BUTTON) {!! fieldPropertyValue('button_name', $information) !!} @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive', $information)) {!! fieldPropertyValue('pdf_descriptive', $information) !!} @endif @break @endswitch
@endforeach
@endif @endforeach
OTHER FACILITIES
@foreach ($otherFacilitiesElements as $index => $facility) @if (!empty($facility)) @php $listImageSp = []; for ($i = 1; $i <= 4; $i++) { if (!empty($facility['image' . $i . '_sp'])) { $listImageSp[] = $facility['image' . $i . '_sp']; } } if (count($listImageSp) == 0) { for ($i = 1; $i <= 4; $i++) { if (!empty($facility['image' . $i])) { $listImageSp[] = $facility['image' . $i]; } } } @endphp
@if (count($listImageSp) < 1)
@else @for ($i = 0; $i < count($listImageSp); $i++)
@endfor @endif
{!! setTextDefault(textLocale('heading_sp', $facility, $lang)) !!}
{!! setTextDefault(textLocale('descriptive_sp', $facility, $lang)) !!}
@php $informationMaterial = getInformationMaterial($facility['other_facility_information_details'], $lang); @endphp @foreach ($informationMaterial as $ind => $information)
{!! fieldPropertyValue('heading_sp', $information) !!}
@switch(fieldPropertyValue('type_sp', $information)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive_sp', $information) !!}
@break @case(InformationMasterialType::BUTTON) {!! fieldPropertyValue('button_name_sp', $information) !!} @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive_sp', $information)) {!! fieldPropertyValue('pdf_descriptive_sp', $information) !!} @endif @break @endswitch
@endforeach
@endif @endforeach
NEXT
PREV