@php use App\Enums\DisplayContent; use App\Enums\InformationMasterialType; $informationMaterial = getInformationMaterial($dataDetail['post_information_details'] ?? [], $lang); @endphp @if (fieldPropertyValue('display_content', $item) == DisplayContent::VIEW_DETAIL)
{!! setTextDefault(textLocale('name', $dataDetail, $lang)) !!}
{!! setTextDefault(textLocale('descriptive', $dataDetail, $lang)) !!}
@if (fieldPropertyValue('reservation_engine_link', $dataDetail)) @endif
@if ($informationMaterial)
@foreach ($informationMaterial as $index => $information)
{!! fieldPropertyValue('heading', $information) !!} @switch(fieldPropertyValue('type', $information)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive', $information) !!}
@break @case(InformationMasterialType::BUTTON) @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive', $information)) @endif @break @endswitch
@endforeach
@endif
@endif @if (fieldPropertyValue('display_content_sp', $item) == DisplayContent::VIEW_DETAIL)
{!! setTextDefault(textLocale('name_sp', $dataDetail, $lang)) !!}
{!! setTextDefault(textLocale('descriptive_sp', $dataDetail, $lang)) !!}
@if ($informationMaterial)
@foreach ($informationMaterial as $index => $information)
{!! fieldPropertyValue('heading_sp', $information) !!} @switch(fieldPropertyValue('type', $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 @if (fieldPropertyValue('reservation_engine_link_sp', $dataDetail)) @endif
@endif