@props(['items' => []]) {{-- Sections Dropdown (Fixed) --}} Sản phẩm @foreach(\App\Models\Section::where('status', true)->orderBy('order_section')->get() as $section) @if($section->icon) @endif {{ $section->title }} @endforeach @foreach($items as $item) @if($item->children->isEmpty()) {{ $item->getName() }} @if($item->isActive()) @endif @else id }}')" class="text-gray-700 hover:text-gray-900 hover:bg-red-200/80 font-medium transition-all duration-200 flex items-center space-x-1 px-3 py-2 rounded-md {{ ($item->isActive() || $item->hasActiveChild()) ? 'text-furniture' : '' }}"> {{ $item->getName() }} @foreach($item->children->sortBy('order_section') as $child) @endforeach @endif @endforeach Mở menu