@php use App\Enums\ElementType; use App\Enums\Status; use App\Enums\NewsElementDefault; use App\Enums\Boolean; use App\Enums\MultiLangMode; if ($project->show_news && $project->noticePage) { $noticePage = $project->noticePage->noticeElements ->filter(function ($val) { return $val->element_type == ElementType::DEFAULT && $val->default_element_type == NewsElementDefault::NEW_LIST && $val->status == Boolean::TRUE; }) ->first(); } $index = 0; @endphp @if (!empty($noticePage) && $notices)

Information

@endif