
<!-- ========== Right Sidebar Start ========== -->
<div class="left-side-menu">

    <div class="slimscroll-menu">

        <!--- Sidemenu -->
        <div id="sidebar-menu">

            <ul class="metismenu" id="side-menu">

                <li class="menu-title">منوی اصلی</li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view-dashboard')): ?>

                <li>
                    <a href="<?php echo e(route('panel.index')); ?>" class="waves-effect">
                        <i class="remixicon-dashboard-line"></i>
                        <span>پیشخوان</span>
                    </a>
                </li>

                <?php endif; ?>

                <li>
                    <a href="<?php echo e(route('panel.tickets.index')); ?>" class="waves-effect">
                        <i class="remixicon-message-3-line"></i>
                        <span class="badge badge-light-primary float-right font-13"><?php echo e(App\Ticket::countAll()); ?></span>
                        <?php if(\App\Ticket::countUnread()): ?><span class="badge badge-light-warning float-right font-13 mr-1"><?php echo e(App\Ticket::countUnread()); ?></span><?php endif; ?>
                        <span>تیکت ها</span>
                    </a>
                </li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\QuickResponse::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.quick-responses.index')); ?>" class="waves-effect">
                            <i class="remixicon-task-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\QuickResponse::count()); ?></span>
                            <span>پاسخ‌های آماده</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\Department::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.departments.index')); ?>" class="waves-effect">
                            <i class="remixicon-folder-5-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\Department::count()); ?></span>
                            <span>دپارتمان ها</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\User::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.users.index')); ?>" class="waves-effect">
                            <i class="remixicon-contacts-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\User::where('role','user')->count()); ?></span>
                            <span>کاربران</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\Staff::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.staffs.index')); ?>" class="waves-effect">
                            <i class="remixicon-user-star-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\Staff::count()); ?></span>
                            <span>پشتیبانان</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\Post::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.posts.index')); ?>" class="waves-effect">
                            <i class="remixicon-article-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\Post::count()); ?></span>
                            <span>اخبار و سوالات متداول</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', App\Report::class)): ?>
                    <li>
                        <a href="<?php echo e(route('panel.reports.index')); ?>" class="waves-effect">
                            <i class="remixicon-file-edit-line"></i>
                            <span class="badge badge-light-primary float-right font-13"><?php echo e(App\Report::count()); ?></span>
                            <?php if(\App\Report::countUnread()): ?><span class="badge badge-light-warning float-right font-13 mr-1"><?php echo e(App\Report::countUnread()); ?></span><?php endif; ?>
                            <span>گزارشات کاربران</span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage-settings')): ?>

                <li class="menu-title">منوی تنظیمات</li>

                    <li>
                        <a href="<?php echo e(route('panel.settings.general')); ?>" class="waves-effect">
                            <i class="remixicon-settings-5-line"></i>
                            <span>تنظیمات عمومی</span>
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('panel.settings.ticket')); ?>" class="waves-effect">
                            <i class="remixicon-chat-settings-line"></i>
                            <span>تنظیمات تیکت</span>
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('panel.settings.sms')); ?>" class="waves-effect">
                            <i class="remixicon-message-3-line"></i>
                            <span>تنظیمات پیامک</span>
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('panel.settings.email')); ?>" class="waves-effect">
                            <i class="remixicon-mail-line"></i>
                            <span>تنظیمات ایمیل</span>
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('panel.settings.template')); ?>" class="waves-effect">
                            <i class="remixicon-brush-line"></i>
                            <span>تنظیمات پوسته و طراحی</span>
                        </a>
                    </li>

                <?php endif; ?>

            </ul>

        </div>
        <!-- End Sidebar -->

        <div class="clearfix"></div>

    </div>
    <!-- Sidebar -left -->

</div>
<!-- Left Sidebar End --><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>