<div class="ml-[280px] min-h-screen space-y-6">
    <div class="bg-white border rounded-2xl p-6 shadow-sm max-w-3xl">

        <h3 class="font-semibold mb-6 text-lg">Edit Menu Page</h3>

        <form wire:submit.prevent="updateItem" class="grid grid-cols-1 md:grid-cols-2 gap-5">

            <!-- CATEGORY -->
            <div>
                <label class="block text-sm font-medium mb-1">Category</label>
                <select wire:model="menu_category_id" class="w-full border rounded-lg px-4 py-2">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </select>
            </div>

            <!-- PAGE NAME -->
            <div>
                <label class="block text-sm font-medium mb-1">Page Name</label>
                <input type="text" wire:model.defer="title" class="w-full border rounded-lg px-4 py-2">
            </div>

            <div>
                <label class="block text-sm font-medium mb-1">
                    URL Slug
                    <span class="text-gray-400 text-xs">(only slug, e.g. brand-strategy)</span>
                </label>

                <div class="flex items-center gap-2">
                    <span class="text-sm text-gray-500">/services/</span>

                    <input type="text" wire:model.defer="url" placeholder="brand-strategy"
                        class="w-full border rounded-lg px-4 py-2
               <?php $__errorArgs = ['url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> border-red-500 <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                </div>

                
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <p class="text-red-600 text-sm mt-1">
                        <?php echo e($message); ?>

                    </p>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>


            <!-- REDIRECT URL -->
            <div>
                <label class="block text-sm font-medium mb-1">Redirect URL</label>
                <input type="text" wire:model.defer="redirect_url" class="w-full border rounded-lg px-4 py-2">
            </div>

            <!-- POSITION -->
            <div>
                <label class="block text-sm font-medium mb-1">Position</label>
                <input type="number" wire:model.defer="position" class="w-full border rounded-lg px-4 py-2">
            </div>

            <!-- SUBMIT -->
            <div class="md:col-span-2">
                <button type="submit" class="bg-black text-white rounded-lg px-6 py-2">
                    Update
                </button>
            </div>

        </form>

    </div>
</div>
<?php /**PATH /home/eggfirst/public_html/video.eggfirst.com/resources/views/livewire/admin/menus/edit.blade.php ENDPATH**/ ?>