@extends('layouts.previews.ana') @php use App\Enums\ElementType; use App\Enums\PlanListDefault; use App\Enums\CustomElementType; $pageName = setTextDefault(textLocale('plan_list_title', $basic, $lang)); $hotelMainPhone = fieldPropertyValue('hotel_main_phone', $basic); $hotelReservationPhone = fieldPropertyValue('hotel_reservation_phone', $basic); @endphp @section('content')
@foreach ($elements as $item) @if (fieldPropertyValue('status', $item)) @if (fieldPropertyValue('element_type', $item) == ElementType::DEFAULT) @switch(fieldPropertyValue('default_element_type', $item)) @case(PlanListDefault::PLAN) @php $planContent = $item; @endphp @break @case(PlanListDefault::CV_NEXT) @php $reserveContent = $item; @endphp @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 @if (!empty($planContent) && !empty($reserveContent)) @include('preview.ana.commons.plan') @endif
@endsection @push('styles') @endpush