<section class="sidemenu">
    <div class="logo">
        <img src="<?php echo e(asset($logo ?? '/assets/admin/images/logo.png')); ?>" alt="">
    </div>
    <ul class="sidemenu-links">
        <li class="<?php echo e($activeMenu[""] ?? ''); ?>">
            <a href="<?php echo e(url('/admin')); ?>"> <i class="fas fa-chart-line"></i> <span>Dashboard</span></a>
        </li>
        <?php $__currentLoopData = $currentUserInfo->modules->toArray(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

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

                $moduleName = moduleName($module['path'], getCurrentLocale());
                $moduleAddNew = metaFields($module['path'], 'add_new', getCurrentLocale());
                $exceptionsRoutes = [
                    'services',
                    'homeInfos',
                    'policies',
                    'abouts',
                    'consultingComplaints',
                    'consultingEvaluates',
                    'marketerCommissions',
                    'settings',
                    'activeConsultings',
                    'finishedConsultings',
                    'documentationRequests',
                    'caseRequests',
                    'trainingRequests',
                    'usersNotifications',
              ];
            ?>


            <?php if(in_array($module['path'], $exceptionsRoutes)
                || (auth()->user()->role == 'sub_admin' && $module['path'] == 'users')): ?>

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

                        <i class="<?php echo e(__($module['path'].'.menuIcon') ?? 'fas fa-edit'); ?>"></i>
                        <?php if($module['path'] == 'activeConsultings'): ?>
                            <span class="position-absolute bg-danger text-white consulting_count" style="
                            left: 22%;
                            top: -3%;
                            border-radius: 50px;
                            width: 30px;
                            height: 30px;
                            display: flex;
                            justify-content: center;
                            align-items: center;">
                                <?php echo e($active_consulting_count); ?>

                            </span>
                        <?php endif; ?>
                        <?php if($module['path'] == 'documentationRequests'): ?>
                            <span class="position-absolute bg-danger text-white" style="
                            left: 22%;
                            top: -3%;
                            border-radius: 50px;
                            width: 30px;
                            height: 30px;
                            display: flex;
                            justify-content: center;
                            align-items: center;">
                                <?php echo e($being_documentations_count); ?>

                            </span>
                        <?php endif; ?>
                        <span>
                            <?php echo e($moduleName ?? __($module['path'].'.head')); ?>

                        </span>

                    </a>
                </li>

            <?php else: ?>
                <li class="linkGroup  <?php echo e($activeMenu[$module['path']] ?? ''); ?>">
                    <a onclick="return false" href="#" class="linkItem-head position-relative">
                        <i class="<?php echo e(__($module['path'].'.menuIcon') ?? 'fas fa-edit'); ?>"></i>
                        <?php if($module['path'] == 'usersNotifications'): ?>











                        <?php endif; ?>
                        <span> <?php echo e($moduleName ??__($module['path'].'.head')); ?> </span>
                    </a>
                    <ul class="linkItem-body">
                        <li>
                            <a href='<?php echo e(route("{$module['path']}.index")); ?>'><?php echo e($moduleName ?? __($module['path'].'.head')); ?></a>
                        </li>
                        <li>
                            <?php if($module['path'] == 'newsletters'): ?>
                                <a href="<?php echo e(route("{$module['path']}.mailsList")); ?>"><?php echo e($moduleAddNew ?? __($module['path'].'.mail_list')); ?></a>
                            <?php else: ?>
                                <a href="<?php echo e(route("{$module['path']}.create")); ?>"><?php echo e($moduleAddNew ?? __($module['path'].'.new')); ?></a>
                            <?php endif; ?>
                        </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(__('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">Log out Confirmation</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>Are you 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">Close</button>
                <button onclick="document.getElementById('logout-form-side').submit()" type="button" class="btn btn-primary"><?php echo e(__('Logout')); ?></button>
            </div>
        </div>
    </div>
</div>


<?php /**PATH C:\wamp64\www\legal\resources\views/admin/layouts/menu.blade.php ENDPATH**/ ?>