@extends ('admin.layouts.default') @section ('main')

@php echo (isset($item)) ? __('labels.menuitem.edit_menu_item') : __('labels.menuitem.create_menu_item'); @endphp

@include('admin.partials.x-toolbar') @php $action = (isset($item)) ? route('admin.menus.items.update', $query) : route('admin.menus.items.store', $query) @endphp
@csrf @if (isset($item)) @method('put') @endif @foreach ($fields as $field) @php $value = (isset($item)) ? old($field->name, $field->value) : old($field->name); @endphp @endforeach @if (isset($item)) @endif @if (isset($item))
@method('delete') @csrf
@endif @endsection @push ('style') @endpush @push ('scripts') @endpush