<?php $__env->startSection('title', $active . ' | ' . admin_trans('Footer Menu')); ?>
<?php $__env->startSection('container', 'container-max-lg'); ?>
<?php $__env->startSection('link', route('admin.footerMenu.create')); ?>
<?php $__env->startSection('language', true); ?>
<?php if($footerMenuLinks->count() == 0): ?>
    <?php $__env->startSection('btn_action', 'disabled'); ?>
<?php endif; ?>
<?php $__env->startSection('content'); ?>
    <?php if($footerMenuLinks->count() > 0): ?>
        <form id="vironeer-submited-form" action="<?php echo e(route('admin.footerMenu.nestable')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <input name="ids" id="ids" hidden>
        </form>
        <div class="card border-0">
            <div class="dd nestable">
                <ol class="dd-list">
                    <?php $__currentLoopData = $footerMenuLinks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $footerMenuLink): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li class="dd-item" data-id="<?php echo e($footerMenuLink->id); ?>">
                            <div class="dd-handle">
                                <span class="drag-indicator"></span>
                                <span class="dd-title"><?php echo e($footerMenuLink->name); ?></span>
                                <div class="dd-nodrag ms-auto">
                                    <a href="<?php echo e(route('admin.footerMenu.edit', $footerMenuLink->id)); ?>"
                                        class="btn btn-sm btn-blue me-2"><i class="fa fa-edit"></i></a>
                                    <form class="d-inline"
                                        action="<?php echo e(route('admin.footerMenu.destroy', $footerMenuLink->id)); ?>"
                                        method="POST">
                                        <?php echo method_field('DELETE'); ?>
                                        <?php echo csrf_field(); ?>
                                        <button class="vironeer-able-to-delete btn btn-sm btn-danger"><i
                                                class="far fa-trash-alt"></i></button>
                                    </form>
                                </div>
                            </div>
                            <?php if(count($footerMenuLink->children)): ?>
                                <ol class="dd-list">
                                    <?php $__currentLoopData = $footerMenuLink->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li class="dd-item" data-id="<?php echo e($child->id); ?>">
                                            <div class="dd-handle">
                                                <span class="drag-indicator"></span>
                                                <span class="dd-title"><?php echo e($child->name); ?></span>
                                                <div class="dd-nodrag ms-auto">
                                                    <a href="<?php echo e(route('admin.footerMenu.edit', $child->id)); ?>"
                                                        class="btn btn-sm btn-blue me-2"><i class="fa fa-edit"></i></a>
                                                    <form class="d-inline"
                                                        action="<?php echo e(route('admin.footerMenu.destroy', $child->id)); ?>"
                                                        method="POST">
                                                        <?php echo method_field('DELETE'); ?>
                                                        <?php echo csrf_field(); ?>
                                                        <button class="vironeer-able-to-delete btn btn-sm btn-danger"><i
                                                                class="far fa-trash-alt"></i></button>
                                                    </form>
                                                </div>
                                            </div>
                                        </li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ol>
                            <?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ol>
            </div>
        </div>
    <?php else: ?>
        <div class="card">
            <div class="card-body">
                <?php echo $__env->make('backend.partials.empty', ['class' => 'empty-lg'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
        </div>
    <?php endif; ?>
    <?php if($footerMenuLinks->count() > 0): ?>
        <?php $__env->startPush('styles_libs'); ?>
            <link rel="stylesheet" href="<?php echo e(asset('vendor/libs/jquery/nestable/jquery.nestable.min.css')); ?>">
        <?php $__env->stopPush(); ?>
        <?php $__env->startPush('scripts_libs'); ?>
            <script src="<?php echo e(asset('vendor/libs/jquery/nestable/jquery.nestable.min.js')); ?>"></script>
        <?php $__env->stopPush(); ?>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/neofiles.codenine.biz.id/resources/views/backend/navigation/footerMenu/index.blade.php ENDPATH**/ ?>