@extends('admin.layouts.app') @section('title', 'Menu Item Details') @section('content')

Menu Item Details

Edit Back to Menu List
@if($menu->icon) @endif {{ $menu->title }}
@if($menu->is_active) Active @else Inactive @endif @if($menu->is_external) External @endif
Title: {{ $menu->title }}
Icon: @if($menu->icon) {{ $menu->icon }} @else No icon @endif
Parent: @if($menu->parent) @if($menu->parent->icon) @endif {{ $menu->parent->title }} @else Top Level Menu @endif
Sort Order: {{ $menu->sort_order }}
Link Type: @if($menu->route_name) Internal Route @else Custom URL @endif
Route/URL: @if($menu->route_name) {{ $menu->route_name }} @elseif($menu->url) {{ $menu->url }} @if($menu->target === '_blank') @endif @else No link @endif
Target: @if($menu->target === '_blank') New Window @else Same Window @endif
Status: @if($menu->is_active) Active @else Inactive @endif @if($menu->is_external) External @endif
@if($menu->description)
Description:

{{ $menu->description }}

@endif @if($menu->url) @endif
@if($menu->children->count() > 0)
Child Menu Items ({{ $menu->children->count() }})
@foreach($menu->children->sortBy('sort_order') as $child) @endforeach
Title Icon Link Order Status Actions
@if($child->icon) @endif {{ $child->title }} @if($child->icon) {{ $child->icon }} @else - @endif @if($child->route_name) {{ $child->route_name }} @elseif($child->url) {{ Str::limit($child->url, 30) }} @else - @endif {{ $child->sort_order }} @if($child->is_active) Active @else Inactive @endif
@endif
Menu Information
@if($menu->parent) @endif
ID: {{ $menu->id }}
Created: {{ $menu->created_at->format('M d, Y H:i') }}
Updated: {{ $menu->updated_at->format('M d, Y H:i') }}
Children: {{ $menu->children->count() }} item(s)
Siblings: {{ $menu->parent->children->count() }} item(s)
Quick Actions
Edit Menu Item Add Child Menu @if($menu->children->count() === 0)
@csrf @method('DELETE')
@else Cannot delete menu with child items @endif
@if($menu->parent)
Parent Menu
@if($menu->parent->icon) @endif
{{ $menu->parent->title }}
@if($menu->parent->route_name) Route: {{ $menu->parent->route_name }} @elseif($menu->parent->url) URL: {{ Str::limit($menu->parent->url, 30) }} @endif
@endif
@endsection