<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="/" class="brand-link">
        <img src="<?php echo e(url('public/assets/dist/img/rama-logo.jpeg')); ?>" alt="Logo" class="brand-image img-circle elevation-3"
            style="opacity: .8">
        <span class="brand-text font-weight-light">Claim & Case Management</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="image">
                <?php if(!empty(Auth::user()->user_profile)): ?>
                <?php
                $user_profile = Auth::user()->user_profile;
                $profile_url = asset('public/assets/users/profiles').'/'.$user_profile;
                ?>
                <img class="img-circle sidebar-image elevation-2" src="<?php echo e($profile_url); ?>" alt="User Image">
                <?php else: ?>
                <i class="fas fa-user"></i>
                <?php endif; ?>
            </div>
            <div class="info">
                <?php if(Auth::user()): ?>
                <a href="<?php echo e(route('user.profile',Auth::user()->id)); ?>" class="d-block">
                    <?php echo e(Auth::user()->full_name); ?>

                    <small class="text-light">(<?php echo e(getUserType(Auth::user()->user_role)); ?>)</small>
                </a>
                <?php endif; ?>
                <a href="<?php echo e(route('logout')); ?>" class="d-block"><span class="btn btn-sm btn-warning">Logout</span></a>
            </div>
        </div>

        <!-- SidebarSearch Form -->
        <div class="form-inline">
            <div class="input-group" data-widget="sidebar-search">
                <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
                <div class="input-group-append">
                    <button class="btn btn-sidebar">
                        <i class="fas fa-search fa-fw fa-xs"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
                <li class="nav-item  <?php echo e((request()->routeIs('dashboard')) ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('dashboard')); ?>"
                        class="nav-link p-1 <?php echo e((request()->routeIs('dashboard')) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-tachometer-alt fa-xs"></i>
                        <p>
                            Dashboard
                        </p>
                    </a>
                </li>
                <?php if(Auth::user()): ?>
                <?php if(Auth::user()->user_role == 1 || Auth::user()->user_role == 2 || Auth::user()->user_role == 3): ?>
                <li
                    class="nav-item <?php echo e((request()->routeIs('create.new.employee') || request()->routeIs('list.all.employees') || request()->routeIs('edit.employee') || request()->routeIs('user.profile') || request()->routeIs('edit.profile') || request()->routeIs('edit.profile')) ? 'menu-open' : ''); ?>">
                    <a href="#"
                        class="nav-link p-1 <?php echo e((request()->routeIs('create.new.employee') || request()->routeIs('list.all.employees') || request()->routeIs('edit.employee') || request()->routeIs('user.profile') || request()->routeIs('edit.profile') || request()->routeIs('edit.profile')) ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-users fa-xs"></i>
                        <p>
                            Manage Users
                            <i class="right fas fa-angle-left "></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?php echo e(route('create.new.employee')); ?>"
                                class="nav-link p-1 <?php echo e((request()->routeIs('create.new.employee')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle nav-icon fa-xs"></i>
                                <p>Create New User</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('list.all.employees')); ?>"
                                class="nav-link p-1 <?php echo e(( request()->routeIs('list.all.employees') || request()->routeIs('edit.employee') || request()->routeIs('user.profile') || request()->routeIs('edit.profile') || request()->routeIs('edit.profile')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle nav-icon fa-xs"></i>
                                <p>Users Listing</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>
                <?php endif; ?>
                <li class="nav-item <?php echo e((request()->routeIs('create.new.claim') || request()->routeIs('next.claim.form') || request()->routeIs('list.all.claims') || request()->routeIs('view.claim.details') || request()->routeIs('claim.report.summary') || request()->routeIs('detailed.claim.report') || request()->routeIs('update.claim.status') || request()->routeIs('edit.claim.info') || request()->routeIs('edit.next.claim.form') || request()->routeIs('create.claim.remark') || request()->routeIs('view.remark')) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link p-1 <?php echo e((request()->routeIs('create.new.claim') || request()->routeIs('next.claim.form') || request()->routeIs('list.all.claims') || request()->routeIs('view.claim.details') || request()->routeIs('claim.report.summary') || request()->routeIs('detailed.claim.report') || request()->routeIs('update.claim.status') || request()->routeIs('edit.claim.info') || request()->routeIs('edit.next.claim.form')  || request()->routeIs('create.claim.remark') || request()->routeIs('view.remark')) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-paste fa-xs"></i>
                        <p>
                            Manage Claims
                            <i class="right fas fa-angle-left "></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?php echo e(route('create.new.claim')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('create.new.claim') || request()->routeIs('next.claim.form')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle  nav-icon fa-xs"></i>
                                <p>New Claim</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('list.all.claims')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('list.all.claims') || request()->routeIs('view.claim.details') || request()->routeIs('update.claim.status') || request()->routeIs('edit.claim.info') || request()->routeIs('edit.next.claim.form') || request()->routeIs('create.claim.remark') || request()->routeIs('view.remark')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle  nav-icon fa-xs"></i>
                                <p>Claim Listing</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('claim.report.summary')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('claim.report.summary')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle nav-icon fa-xs"></i>
                                <p>Report Summary</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('detailed.claim.report')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('detailed.claim.report')) ? 'active' : ''); ?>">
                                <i class="fa  fa-circle  nav-icon fa-xs"></i>
                                <p>Detailed Report</p>
                            </a>
                        </li>
                    </ul>
                </li>
                 <li class="nav-item <?php echo e((request()->routeIs('create.new.case') || request()->routeIs('list.all.cases') || request()->routeIs('case.report.summary') || request()->routeIs('detailed.case.report') || request()->routeIs('view.cases.details') || request()->routeIs('edit.cases') || request()->routeIs('update.hearing') || request()->routeIs('create.case.remark')) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link p-1 <?php echo e((request()->routeIs('create.new.case') || request()->routeIs('list.all.cases') || request()->routeIs('case.report.summary') || request()->routeIs('detailed.case.report') || request()->routeIs('view.cases.details') || request()->routeIs('edit.cases') || request()->routeIs('update.hearing') || request()->routeIs('create.case.remark')) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-paste fa-xs"></i>
                        <p>
                            Manage Cases
                            <i class="right fas fa-angle-left "></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?php echo e(route('create.new.case',[2])); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('create.new.case') || request()->routeIs('next.claim.form')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle  nav-icon fa-xs"></i>
                                <p>New Case</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('list.all.cases')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('list.all.cases') || request()->routeIs('view.claim.details') || request()->routeIs('view.cases.details') || request()->routeIs('edit.cases') || request()->routeIs('update.hearing') || request()->routeIs('create.case.remark')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle  nav-icon fa-xs"></i>
                                <p>Case Listing/Direct Case</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('case.report.summary')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('case.report.summary')) ? 'active' : ''); ?>">
                                <i class="fa fa-circle nav-icon fa-xs"></i>
                                <p>Report Summary</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?php echo e(route('detailed.case.report')); ?>" class="nav-link p-1 <?php echo e((request()->routeIs('detailed.case.report')) ? 'active' : ''); ?>">
                                <i class="fa  fa-circle  nav-icon fa-xs"></i>
                                <p>Detailed Report</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item  <?php echo e((request()->routeIs('download.forms')) ? 'active' : ''); ?>">	
                    <a href="<?php echo e(route('download.forms')); ?>"	
                        class="nav-link p-1 <?php echo e((request()->routeIs('download.forms')) ? 'active' : ''); ?>">	
                        <i class="nav-icon fas fa-download fa-xs"></i>	
                        <p>	
                            Downlod Form	
                        </p>	
                    </a>	
                </li>
            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
<?php /**PATH /home/legalclaim231/public_html/resources/views/includes/sidebar.blade.php ENDPATH**/ ?>