@extends('backend.partials.master') @section('title') {{ ___('label.menu') }} @endsection @section('maincontent') @if(hasPermission('cms_create')) {{ ___('label.add') }} @endif @if(!empty($analytics)) @endif {{-- Rows arrive depth-first with a tree_depth attribute, so the nesting is readable at a glance. --}} @foreach($items as $m) @php $c = $m->status === 'active' ? 'success' : 'danger'; $depth = (int) ($m->tree_depth ?? 0); @endphp @if($depth)└@endif @if($m->icon)@endif @if($depth) {{ $m->title }} @else {{ $m->title }} @endif @if($m->target === '_blank')@endif {{ $m->url ?: '—' }} {{ \App\Repositories\Menu\MenuRepository::POSITIONS[$m->position] ?? $m->position }} {{ $m->sort_order }} {{ admin_label(ucfirst($m->status)) }}
@if(hasPermission('cms_update')) @endif @if(hasPermission('cms_delete')) @endif
@endforeach
@endsection @push('scripts') @endpush