<section class="sidemenu">
    <div class="logo">
        <img src="<?php echo e(asset('/assets/admin/images/logo.svg')); ?>" alt="">
    </div>

    <ul class="sidemenu-links">
        <li class="<?php echo e($activeMenu[""] ?? ''); ?>">
            <!--<a href="<?php echo e(url('/store')); ?>"> <i class="fas fa-chart-line"></i> <span><?php echo e(__('dashboard.dashboard')); ?></span></a>-->
            <a href="<?php echo e(url('/store')); ?>"> <img src="<?php echo e(asset('/assets/admin/images/icons/home.png')); ?>" alt="" class="icon"> <span><?php echo e(__('dashboard.dashboard')); ?></span></a>
        </li>

        <?php $__currentLoopData = storeModules(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <?php
                /** @var $module */

                $exceptedModules = ['profile','store','order','subscribe'];
            ?>

            <?php if(in_array($module['path'], $exceptedModules)): ?>

                <li class="<?php echo e($activeMenu[$module['path']] ?? ''); ?>">
                    <a href="<?php echo e(route("{$module['path']}.index")); ?>">

                        <i class="<?php echo e(__($module['path'].'.menuIcon') ?? 'fas fa-edit'); ?>"></i>
                        <span><?php echo e(__($module['path'].'.head')); ?></span>

                    </a>
                </li>
            <?php else: ?>
                <li class="linkGroup  <?php echo e($activeMenu[$module['path']] ?? ''); ?>">
                    <a  class="linkItem-head"> <i class="<?php echo e(__($module['path'].'.menuIcon') ?? 'fas fa-edit'); ?>"></i> <span> <?php echo e(__($module['path'].'.head')); ?> </span></a>
                    <ul class="linkItem-body">
                        <li>
                            <a href='<?php echo e(route("{$module['path']}.index")); ?>'><?php echo e(__($module['path'].'.head')); ?></a>
                        </li>
                        <li>
                                <a href="<?php echo e(route("{$module['path']}.create")); ?>"><?php echo e(__($module['path'].'.new')); ?></a>
                        </li>

                    </ul>
                </li>
            <?php endif; ?>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <li>
            <a data-toggle="modal" data-target="#logout" href="<?php echo e(route('admin_logout')); ?>" ><i class="fas fa-sign-out-alt"></i> <span> <?php echo e(__('dashboard.logout')); ?> </span></a>
        </li>
    </ul>
</section>





<!-- Modal -->
<div class="modal fade" id="logout" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('dashboard.confirm_logout')); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h3><?php echo e(__('dashboard.sure')); ?> <i class="fa fa-exclamation-circle text-danger"></i></h3>
                <form id="logout-form-side" action="<?php echo e(route('admin_logout')); ?>" method="POST" style="display: none;">
                    <?php echo csrf_field(); ?>
                </form>
            </div>
            <div class="modal-footer justify-content-between">
                <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('dashboard.close')); ?></button>
                <button onclick="document.getElementById('logout-form-side').submit()" type="button" class="btn btn-primary"><?php echo e(__('dashboard.logout')); ?></button>
            </div>
        </div>
    </div>
</div>


<?php /**PATH /home/omaralyomhost/public_html/made/resources/views/store/layouts/menu.blade.php ENDPATH**/ ?>