@foreach($child as $menu) @php $status=$menu["status"]; $statusBg="black"; $statusTitle=$status===1 ? 'Aktif': 'Pasif'; $statusSearch=collect($form["statuses"])->where('value','=',$status)->first(); if($statusSearch!==null){ $statusBg=$statusSearch["color"]; $statusTitle=$statusSearch["title"]; } @endphp
  1. @if(count($menu["child"]) > 0) @include("admin.pages.themes.menu.partials.child",['child'=>$menu["child"]]) @endif
  2. @endforeach