@extends('layouts.previews.intercontinental') @php use App\Enums\ElementType; use App\Enums\SightseeingAroundElementDefault; use App\Enums\CustomElementType; $sightConcept = current( array_filter($elements, function ($value) { return $value['element_type'] == ElementType::DEFAULT && $value['default_element_type'] == SightseeingAroundElementDefault::CONCEPT && $value['status']; }), ); @endphp @section('content')
@if ($sightConcept)
{!! setTextDefault(textLocale('body', $sightConcept, $lang)) !!} {!! setTextDefault(textLocale('body_sp', $sightConcept, $lang)) !!}
@endif
@php $touristRoutes = array_filter($elements, function ($value) { return $value['element_type'] == ElementType::DEFAULT && $value['default_element_type'] == SightseeingAroundElementDefault::TOURIST_ROUTE && $value['status']; }); @endphp @include('preview.intercontinental.defaults.roomSightseeing.modelCourse') @include('preview.intercontinental.defaults.roomSightseeing.sightseeingSpots') @foreach ($elements as $index => $item) @if (fieldPropertyValue('status', $item)) @if (fieldPropertyValue('element_type', $item) == ElementType::DEFAULT) @switch(fieldPropertyValue('default_element_type', $item)) @case(SightseeingAroundElementDefault::PLAN) @include('preview.intercontinental.commons.plan') @break @endswitch @endif @endif @if (textLocale('status', $item, $lang) && fieldPropertyValue('custom_element_type', $item) >= CustomElementType::ONE_COLUMN && fieldPropertyValue('custom_element_type', $item) <= CustomElementType::SIDE_CONTENT_V2)
@include('preview.customs.customContent')
@endif @endforeach
@endsection