@extends('layouts.previews.ana') @php use App\Enums\ElementType; use App\Enums\PlanListDefault; use App\Enums\CustomElementType; use App\Enums\PlanCategory; @endphp @section('content')
    @foreach ($planCategories as $planCategory) @if ($loop->first)
  • {!! setTextDefault(textLocale('name', $planCategory, $lang)) !!}
  • @else
  • {!! setTextDefault(textLocale('name', $planCategory, $lang)) !!}
  • @endif @if ($loop->last)
  • @endif @endforeach
    @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