@extends('layouts.previews.default') @php use App\Enums\ElementType; use App\Enums\AccessElementDefault; use App\Enums\CustomElementType; @endphp @section('content')
@foreach ($elements as $item) @if (fieldPropertyValue('element_type', $item) == ElementType::DEFAULT) @if (fieldPropertyValue('default_element_type', $item) == AccessElementDefault::TRAIN_OR_BUS) @include('preview.default.defaults.access.trainOrBus') @endif @if (fieldPropertyValue('status', $item)) @switch(fieldPropertyValue('default_element_type', $item)) @case(AccessElementDefault::PLAN) @include('preview.default.commons.plan') @break @case(AccessElementDefault::CV_NEXT) @php $reserve = $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 @include('preview.default.commons.allContaintSP') @if (!empty($reserve)) @include('preview.default.commons.reserve') @endif
@endsection