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