<?php $__env->startSection('title', $title); ?>

<?php $__env->startSection('vendor-style'); ?>

<link rel="stylesheet" href="<?php echo e(asset('/vendors/css/extensions/jquery.nestable.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Add rows table -->
<section id="add-row">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title">Add New <?php echo e($title); ?></h4>
                </div>
                <div class="card-content">
                    <div class="card-body">
                        <fieldset id="steps-uid-0-p-0" role="tabpanel" aria-labelledby="steps-uid-0-h-0" class="body current" aria-hidden="false" style="">
                            <?php echo Form::open(array( 'class' => 'number-tab-steps wizard-circle wizard clearfix','url' => 'admin/administrators/save')); ?>

                            <?php echo $__env->make('admin.administrators.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


                            <?php echo Form::close(); ?>

                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('vendor_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('myscript'); ?>

<script src="<?php echo e(asset(mix('/vendors/js/extensions/jquery.nestable.js'))); ?>"></script>
<script>
var updateOutput = function (e) {
    var list = e.length ? e : $(e.target);
    if ((list.attr("id") == "nestable_menus") || (list.attr("id") == "assigned_menus") || (list.attr("id") == "nestable_widget") || (list.attr("id") == "nestable_locker") || (list.attr("id") == "nestable_franchise_post_code") || (list.attr("id") == "nestable_time")) {
        var output = list.data('output');
        if (window.JSON) {
            output.val(window.JSON.stringify(list.nestable('serialize')));//, null, 2));
        } else {
            //output.html('JSON browser support required for this demo.');
        }
    }
};
$(document).ready(function ()
{

    // activate Nestable for list 1
    $('#assigned_menus').nestable({
        group: 1,
        maxDepth: 2
    }).on('change', updateOutput);

    // activate Nestable for list 2
    $('#unassigned_menus').nestable({
        group: 1,
        maxDepth: 1
    }).on('change', updateOutput);

    updateOutput($('#assigned_menus').data('output', $('#assigned_output')));



});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin/layouts/contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/admin/administrators/create.blade.php ENDPATH**/ ?>