<div class="dropdown d-inline-block">
    <button data-bs-toggle="modal" data-bs-target="#edit-item-<?php echo e($item->id); ?>" style="border: none; background:none;">
        <i class="ri-edit-box-fill" style="font-size: 20px;
        color: #0072ff;"></i>
    </button>
    
</div>



<!-- Edit Modal -->
<div class="modal fade" id="edit-item-<?php echo e($item->id); ?>" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header bg-light p-3">
                <h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('Update')); ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" id="close-modal"></button>
            </div>
            <form action="<?php echo e(route('c-panel.menus.update', $item->id )); ?>" method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>
                <div class="modal-body">
                    <div class="mb-3">
                        <label for="name" class="form-label"><?php echo e(__('English Menu Name')); ?></label>
                        <input type="text" id="name" name="name" value="<?php echo e(old('name', $item->name)); ?>" class="form-control" placeholder="Name" required />
                    </div>
                    <div class="mb-3">
                        <label for="name_ar" class="form-label"><?php echo e(__('Arabic Menu Name')); ?></label>
                        <input type="text" id="name_ar" name="name_ar" value="<?php echo e(old('name_ar', $item->name_ar)); ?>" class="form-control" placeholder="Name" required />
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="hstack gap-2 justify-content-end">
                        <button type="button" class="btn btn-light" data-bs-dismiss="modal"><?php echo e(__('Close')); ?></button>
                        <button type="submit" class="btn btn-success" id="add-btn"><?php echo e(__('Update')); ?></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!--end edit modal -->

<?php /**PATH C:\xampp\htdocs\crm\resources\views/admin/menus/datatable/buttons.blade.php ENDPATH**/ ?>