@foreach($actions as $action=>$property) @php $type = $property?->type ?? ''; @endphp @switch($type) @case("custom") @break @default @if($property->show ?? false) @endif @break @endswitch @endforeach