<nav id="sidebar">
    <div class="sidebar-header">
        <h3>
            <?php
             //To get logo...
             $softLogo = App\Models\Logo::getSoftwareLogo();   
            ?>

            <?php if(isset($softLogo) && $softLogo->logo_image != null): ?>
                <img src="<?php echo e(asset('backend/uploads/logoImg/'.$softLogo->logo_image)); ?>" class="img-fluid" /><span>Skin Care</span>
            <?php else: ?>
                <img src="<?php echo e(asset('backend/template-assets')); ?>/images/avator.jpg" class="img-fluid" /><span>Skin Care</span>
            <?php endif; ?>
        </h3>
    </div>

    <ul class="list-unstyled components">

        <li class="active">
            <a href="<?php echo e(route('admin.dashboard')); ?>" class="dashboard
            <?php echo e(request()->is('admin/dashboard') ? 'custom-sidebar-menu-active' : ''); ?>

            ">
                <i class="material-symbols-outlined">dashboard</i><span>Dashboard</span>
            </a>
        </li>


        <div class="small-screen navbar-display">
            <?php if(Auth::user()->can('blog-list') || Auth::user()->can('blog-create')): ?>
            <li class="dropdown">
                <a href="javascript:void(0)" data-bs-target="#homeSubmenu0" data-bs-toggle="collapse"
                    aria-expanded="false" class="dropdown-toggle
                    <?php echo e(request()->is('blog') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('active-blog-list') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('inactive-blog-list') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('blog/*') ? 'custom-sidebar-menu-active' : ''); ?>

                    " 
                    
                    onclick="sidebarCollapseMenu(14)">
                    <i class="material-symbols-outlined">post</i><span>Blogs</span></a>
                <ul class="collapse list-unstyled menu
                    <?php echo e(request()->is('blog') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('active-blog-list') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('inactive-blog-list') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('blog/*') ? 'custom-sidebar-open' : ''); ?>

                " id="sidebar_collapse_14">

                    <?php if(Auth::user()->can('blog-list')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('blog') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('active-blog-list') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('inactive-blog-list') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('blog/*/edit') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('blog.index')); ?>"><i class="fa-regular fa-circle sidebar-li"></i> Blog List</a>
                    </li>
                    <?php endif; ?>
                    <?php if(Auth::user()->can('blog-create')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('blog/create') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('blog.create')); ?>"><i class="fa-regular fa-circle sidebar-li"></i> New Blog</a>
                    </li>
                    <?php endif; ?>

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

        <div class="small-screen navbar-display">
            <?php if(Auth::user()->can('timely-push-notification-access') ||
            Auth::user()->can('direct-push-notification-access')): ?>
            <li class="dropdown">
                <a href="javascript:void(0)" data-bs-target="#homeSubmenu0" data-bs-toggle="collapse"
                    aria-expanded="false" class="dropdown-toggle
                    <?php echo e(request()->is('push-notification') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification/*') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification-direct') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification-direct-create') ? 'custom-sidebar-menu-active' : ''); ?>

                    " 
                    
                    onclick="sidebarCollapseMenu(15)">
                    <i class="material-symbols-outlined">notification_multiple</i><span>Notifications</span></a>
                <ul class="collapse list-unstyled menu
                <?php echo e(request()->is('push-notification') ? 'custom-sidebar-open' : ''); ?>

                <?php echo e(request()->is('push-notification/*') ? 'custom-sidebar-open' : ''); ?>

                <?php echo e(request()->is('push-notification-direct') ? 'custom-sidebar-open' : ''); ?>

                <?php echo e(request()->is('push-notification-direct-create') ? 'custom-sidebar-open' : ''); ?>

                " id="sidebar_collapse_15">

                    <?php if(Auth::user()->can('direct-push-notification-access')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('push-notification-direct') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification-direct-create') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('push-notification-direct')); ?>"><i
                                class="fa-regular fa-circle sidebar-li"></i> Direct Notification</a>
                    </li>
                    <?php endif; ?>
                    <?php if(Auth::user()->can('timely-push-notification-access')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('push-notification') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification/create') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('push-notification/*/edit') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('push-notification.index')); ?>"><i class="fa-regular fa-circle sidebar-li"></i>
                            Timely Notification</a>
                    </li>
                    <?php endif; ?>

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

        <div class="small-screen navbar-display">
            <?php if(Auth::user()->can('post-setting-access') || Auth::user()->can('question-setting-access')
            || Auth::user()->can('logo-setting-access')): ?>
            <li class="dropdown">
                <a href="javascript:void(0)" data-bs-target="#homeSubmenu0" data-bs-toggle="collapse"
                    aria-expanded="false" class="dropdown-toggle
                    <?php echo e(request()->is('setting') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('roles') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('roles-edit/*') ? 'custom-sidebar-menu-active' : ''); ?>

                    <?php echo e(request()->is('users') ? 'custom-sidebar-menu-active' : ''); ?>

                    " 
                    
                    onclick="sidebarCollapseMenu(20)">
                    <i class="material-symbols-outlined">settings</i><span> Settings</span></span></a>
                <ul class="collapse list-unstyled menu
                    <?php echo e(request()->is('setting') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('roles') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('roles-edit/*') ? 'custom-sidebar-open' : ''); ?>

                    <?php echo e(request()->is('users') ? 'custom-sidebar-open' : ''); ?>

                " id="sidebar_collapse_20">

                    <?php if(Auth::user()->can('logo-setting-access')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('setting') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('setting')); ?>"><i class="fa-regular fa-circle sidebar-li"></i> General Setting</a>
                    </li>
                    <?php endif; ?>

                    <?php if(Auth::user()->can('role-list') || Auth::user()->can('role-create') ||
                    Auth::user()->can('role-edit') || Auth::user()->can('role-delete')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('roles') ? 'custom-sidebar-submenu-active' : ''); ?>

                    <?php echo e(request()->is('roles-edit/*') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('roles.index')); ?>"><i class="fa-regular fa-circle sidebar-li"></i> Role </a>
                    </li>
                    <?php endif; ?>

                    <?php if(Auth::user()->can('user-list')): ?>
                    <li class="ms-2
                    <?php echo e(request()->is('users') ? 'custom-sidebar-submenu-active' : ''); ?>

                    ">
                        <a href="<?php echo e(route('users.index')); ?>"><i class="fa-regular fa-circle sidebar-li"></i> User </a>
                    </li>
                    <?php endif; ?>
                </ul>
            </li>
            <?php endif; ?>
    </ul>
</nav><?php /**PATH E:\Project\Personal-Project\Office-Project\update\skin-care-software\resources\views/admin/layout/sidebar.blade.php ENDPATH**/ ?>