@extends('admin.layouts.form') @section('title', admin_trans('Navbar Menu')) @section('container', 'container-max-lg') @section('link', route('admin.navbar-menu.create')) @if ($navbarMenuLinks->count() == 0) @section('btn_action', 'disabled') @endif @section('content') @if ($navbarMenuLinks->count() > 0)
@csrf
    @foreach ($navbarMenuLinks as $navbarMenuLink)
  1. {{ $navbarMenuLink->name }}
    @method('DELETE') @csrf
    @if (count($navbarMenuLink->children))
      @foreach ($navbarMenuLink->children as $child)
    1. {{ $child->name }}
      @method('DELETE') @csrf
    2. @endforeach
    @endif
  2. @endforeach
@else
@include('admin.partials.empty', ['size' => 180])
@endif @if ($navbarMenuLinks->count() > 0) @push('styles_libs') @endpush @push('scripts_libs') @endpush @endif @endsection