<?php $__env->startSection('menu-content'); ?>
    <form action="<?php echo e(route('admin.menu.builder.header.two.update')); ?>" method="post" class="d-flex flex-column gap-3" id="menuBuilderForm">
        <?php echo csrf_field(); ?>
        <div class="card">
            <div class="card-header d-flex flex-wrap justify-content-between">
                <h5><?php echo app('translator')->get('Status'); ?> &nbsp; <?php if (isset($component)) { $__componentOriginal319c173192d983146c5bd67854bb9452 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal319c173192d983146c5bd67854bb9452 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.toggle-switch','data' => ['name' => 'status','checked' => @$settings->status == 'on']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('toggle-switch'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'status','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$settings->status == 'on')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $attributes = $__attributesOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__attributesOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $component = $__componentOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__componentOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?></h5>
            </div>

            <div class="card-body d-flex gap-3 flex-column" id="menuOptions">
                <?php $__currentLoopData = $settings->group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($key == 'logo_widget'): ?>
                        <div class="d-flex align-items-center gap-2 border p-3 rounded bg-white" id="categoryWidget">
                            <span class="ui-icon bg-transparent"><i class="fa fa-grip-vertical"></i></span>
                            <div class="d-flex justify-content-between flex-grow-1">
                                <span class="flex-grow-1">
                                    <input type="hidden" name="group[<?php echo e($key); ?>][name]" value="logo">
                                    <img src="<?php echo e(siteLogo('dark')); ?>" alt="logo" width="140">
                                </span>
                                <?php if (isset($component)) { $__componentOriginal319c173192d983146c5bd67854bb9452 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal319c173192d983146c5bd67854bb9452 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.toggle-switch','data' => ['name' => 'group['.e($key).'][status]','checked' => @$group->status == 'on']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('toggle-switch'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'group['.e($key).'][status]','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$group->status == 'on')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $attributes = $__attributesOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__attributesOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $component = $__componentOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__componentOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
                            </div>
                        </div>
                    <?php elseif($key == 'search_widget'): ?>
                        <div class="d-flex align-items-center gap-2 border p-3 rounded bg-white" id="categoryWidget">
                            <span class="ui-icon bg-transparent"><i class="fa fa-grip-vertical"></i></span>
                            <div class="d-flex justify-content-between align-items-center flex-grow-1">
                                <span class="flex-grow-1 max-width-320 ">
                                    <input type="hidden" name="group[<?php echo e($key); ?>][name]" value="logo">
                                    <div class="border rounded me-3 px-3 py-2 d-flex justify-content-between align-items-center"><?php echo app('translator')->get('Search'); ?><i class="la la-search"></i></div>
                                </span>
                                <?php if (isset($component)) { $__componentOriginal319c173192d983146c5bd67854bb9452 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal319c173192d983146c5bd67854bb9452 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.toggle-switch','data' => ['name' => 'group['.e($key).'][status]','checked' => @$group->status == 'on']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('toggle-switch'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'group['.e($key).'][status]','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$group->status == 'on')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $attributes = $__attributesOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__attributesOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $component = $__componentOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__componentOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
                            </div>
                        </div>
                    <?php elseif($key == 'widgets'): ?>
                        <div class="border rounded p-3 d-flex flex-column gap-3 bg-white" id="otherWidgets">
                            <h6><?php echo app('translator')->get('Widgets'); ?></h6>
                            <?php $__currentLoopData = $settings->group->widgets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $widget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="d-flex align-items-center gap-2 border p-2 rounded">
                                    <span class="ui-icon bg-transparent"><i class="fa fa-grip-vertical"></i></span>
                                    <div class="d-flex align-items-center justify-content-between flex-grow-1">
                                        <span class="flex-grow-1">
                                            <?php echo e(__($widget->name)); ?>

                                            <input type="hidden" name="group[widgets][<?php echo e($loop->index); ?>][name]" value="<?php echo e($widget->name); ?>">
                                            <input type="hidden" name="group[widgets][<?php echo e($loop->index); ?>][key]" value="<?php echo e($widget->key); ?>">
                                        </span>
                                        <?php if (isset($component)) { $__componentOriginal319c173192d983146c5bd67854bb9452 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal319c173192d983146c5bd67854bb9452 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.toggle-switch','data' => ['name' => 'group[widgets]['.e($loop->index).'][status]','checked' => @$widget->status == 'on']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('toggle-switch'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'group[widgets]['.e($loop->index).'][status]','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$widget->status == 'on')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $attributes = $__attributesOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__attributesOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal319c173192d983146c5bd67854bb9452)): ?>
<?php $component = $__componentOriginal319c173192d983146c5bd67854bb9452; ?>
<?php unset($__componentOriginal319c173192d983146c5bd67854bb9452); ?>
<?php endif; ?>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
        <button type="submit" class="btn btn--primary h-45 w-100"><?php echo app('translator')->get('Submit'); ?></button>
    </form>
<?php $__env->stopSection(); ?>




<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            'use strict';
            $('#menuLinks').sortable();
            $('#menuLinks').disableSelection();
            $("#menuOptions").sortable();
            $("#menuOptions").disableSelection();
            $("#otherWidgets").sortable();
            $("#otherWidgets").disableSelection();
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .input-group .form-control {
            border-top-right-radius: 5px !important;
            border-bottom-right-radius: 5px !important;
        }

        .input-group .input-group-text {
            border-top-left-radius: 5px !important;
            border-bottom-left-radius: 5px !important;
        }

        .max-width-320 {
            max-width: 320px;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.menu_builder.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/creativedesignbd/ecommerce7.creativedesign.com.bd/core/resources/views/admin/menu_builder/header_two.blade.php ENDPATH**/ ?>