<aside class ="main-sidebar sidebar-dark-primary elevation-4 " >
    <!-- Brand Logo -->
    <!--<a href="index3.php" class="brand-link">
      <img src="<?php echo e(url('dist/img/AdminLTELogo.png')); ?>" alt="HMS Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light">MIRS</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">
          <img src="<?php echo e(url('public/dist/img/barracpore_logo.png')); ?>" class="img-circle elevation-2" alt=" Image">
        </div>
        <div class="info">
          <a href="#" class="d-block"> MIRS <?php //echo $_SESSION['name'];?>
     <?php if(session('userType')=='admin'){ echo 'Admin' ;}
      elseif(session('userType')=='accounts'){echo 'accounts';}elseif(session('userType')=='dcp'){
      echo 'DCP';}elseif(session('userType')=='police'){ echo 'Police Station';}
      elseif(session('userType')=='acp'){ echo 'ACP';} elseif(session('userType')=='sdo'){ echo 'SDO';} elseif(session('userType')=='hospital'){ echo ' Autopsy Doctor';}elseif(session('userType')=='police_personnel'){ echo 'Police Personnel';} ?> Panel
 </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"></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">
            <a href="<?php echo e(url('/')); ?>" class="nav-link">
              <i class="fa fa-home"></i>
              <p>
                
                &nbsp; Dashboard
                
              </p>
            </a>
          
		</li>
			  
         <?php if(session('userType') =='admin'){?>
        
          <li class="nav-item">
        
            <a href="#" class="nav-link">
              <i class="fas fa-hospital"></i>
              <p>
                &nbsp; Hospital
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
                
              <li class="nav-item">
                <a href="<?php echo e(url('add_hospital')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Hospital</p>
                </a>
              </li>
              <li class="nav-item">
                <a href = "<?php echo e(url('view_hospital')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> View Hospital</p>
                </a>
              </li>
              
               <li class="nav-item">
                
                <a href = "<?php echo e(url('add_doctor')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> Add autopsy Doctor </p>
                
                </a>
                
              </li>
              
              <li class="nav-item">
                
                <a href = "<?php echo e(url('vw_doctor')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> View Doctor </p>
                
                </a>
                
              </li>
              
               <li class="nav-item">
                
                <a href = "<?php echo e(url('add_investigationOfficer')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> Add Investigation Officer (IE/IO)</p>
                
                </a>
                
              </li>
              
               <li class="nav-item">
                
                <a href = "<?php echo e(url('vw_investOfficer')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> View Investigation Officer (IE/IO) </p>
                
                </a>
                
              </li>
              
			  </ul>
			
			  </li>
			
			<?php }?>
			
			<?php if(session('userType') =='admin'){?>
		    
		    <li class="nav-item">
            
            <a href="#" class="nav-link">
              <i class="fa fa-bank"></i>
              <p>
                &nbsp; Police Station
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            
            <ul class="nav nav-treeview">
                
                <li class="nav-item">
                <a href="<?php echo e(url('add-police-personnel')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> ADD Police Personnel </p>
                </a>
                </li>
                
                 <li class="nav-item">
                <a href="<?php echo e(url('view-police-personnel')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> View Police Personnel </p>
                </a>
                </li>
                
              
              <li class="nav-item">
                <a href="<?php echo e(url('addPS')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Police Station</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo e(route('listPs')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Police Station List</p>
                </a>
              </li>
			  </ul>
			  </li>
			  <?php }?>
			
		   <?php if(session('userType') =='admin' || session('userType') =='accounts'){?>
			
			<li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="fa fa-credit-card"></i>
                  <p>
                    &nbsp; Accounts
                    <i class="fas fa-angle-left right"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  
                  <li class="nav-item">
                    
                    <a href="<?php echo e(url('add-accounts')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p> ADD Accounts</p>
                    </a>
                    
                  </li>
                  
                   <li class="nav-item">
                   
                    <a href="<?php echo e(url('view-accounts')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p> View Accounts</p>
                    </a>
                  
                  </li>
                   
                   <li class="nav-item">
                    <a href="<?php echo e(url('listAcc')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p> Bill Process</p>
                    </a>
                  </li>
                  
    			  </ul>
			  </li>
			   <?php }?>
			    <?php if(session('userType') =='admin'  || session('userType') =='hospital'){?>
			    
			    
			  	<li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="fa fa-cloud-upload	
"></i>
                  <p>
                    &nbsp; Upload 
                    <i class="fas fa-angle-left right"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                    
                    <?php if( session('userType') =='hospital'){?>
			    <!--
                  <li class="nav-item">
                    <a href="<?php echo e(url('add_post_mortem')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Add Post Mortem </p>
                    </a>
                  </li>-->
                  
                  <?php }?>
                  <!--
                   <li class="nav-item">
                    <a href="<?php echo e(url('view_post_mortem')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>View Post Mortem </p>
                    </a>
                  </li>
-->                  
                  <?php if( session('userType') =='hospital'){?> 
                  
                  <li class="nav-item">
                    <a href="<?php echo e(url('addBill')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>  Add Bill</p>
                    </a>
                  </li>
                  
                  <?php }?>
                  
                   <li class="nav-item">
                    <a href="<?php echo e(url('viewBill')); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>  View Bill</p>
                    </a>
                  </li>
                   
                   <?php if( session('userType') =='police'){?>
                   
              <!--
                    <li class="nav-item">
                    
                        <a href = "<?php echo e(url('/WB_FORM_NO_5870')); ?>" class = "nav-link" >
                        
                        <i class="fas fa-user-md"></i>
                        <p>
                        
                            &nbsp; WB - 5870  4545
                        
                        </p>
                        
                        </a>
                    
                    </li>
                    -->
                    <?php }?>
            
    			  </ul>
			  </li>
			    <?php }?>
			 <?php if(session('userType') =='admin'){?>
		       
		        <li class="nav-item">
           
            <a href="#" class="nav-link">
              <i class="fa fa-cog"></i>
              <p>
                &nbsp; Permission
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
           
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="add_doctor.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> PS Permission</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="view_doctor.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Accounts Permission</p>
                </a>
              </li>
              
               <li class="nav-item">
                   
                <a href="view_doctor.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>DCP Permission</p>
                </a>
                
              </li>
              
              <li class="nav-item">
                  
                <a href="view_doctor.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>ACP Permission</p>
                </a
                
              </li>
		
		     <li class="nav-item">
                <a href="view_doctor.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>SDO Permission</p>
                </a>
              </li>
		
		  </ul>
		   
		   </li>
		     
		     <?php }?>
		     
		      <?php if(session('userType') =='police_personnel'){?>
		      <!--
		      <li class="nav-item">
                <a href="<?php echo e(url('WB_FORM_NO_5371')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>WB_FORM_NO_5371</p>
                </a>
              </li>
              -->
		     <?php }?>
		      <?php if( session('userType') =='police'){?>
                     <li class="nav-item">
                
                <a href = "<?php echo e(url('add_investigationOfficer')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> Add Investigation Officer (IE/IO)</p>
                
                </a>
                
              </li>
              
               <li class="nav-item">
                
                <a href = "<?php echo e(url('vw_investOfficer')); ?>" class="nav-link">
                
                  <i class="far fa-circle nav-icon"></i>
                
                  <p> View Investigation Officer (IE/IO) </p>
                
                </a>
                
              </li>
                    <li class="nav-item">
                    
                        <a href = "<?php echo e(url('/WB_FORM_NO_5371')); ?>" class = "nav-link" >
                        
                       <i class="fa fa-ambulance" style="font-size:24px"></i>
                        <p>
                        
                            &nbsp; DEAD BODY CHALLAN SENT TO HOSPITAL
                        
                        </p>
                        
                        </a>
                    
                    </li>
                    
                    <?php }?>
		    <li class="nav-item">
           
            <a href="#" class="nav-link">
                
              <i class="fa fa-bar-chart	"></i>
              <p>
                &nbsp; Reports
                <i class="fas fa-angle-left right"></i>
              </p>
              
            </a>
           
            <ul class="nav nav-treeview">
                
              <li class="nav-item">
                  
                <a href="<?php echo e(url('reports_hospitalWise_pm')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Hospital wise PM Reports</p>
                </a>
                
              </li>
              
              <?php if( session('userType') !='police'){?>
              
              <li class="nav-item">
                  
                <a href="<?php echo e(url('ps_wise_pm_reports')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>PS Wise PM Reports</p>
                </a>
                
              </li> 
              
              <?php }?>
              
              <li class="nav-item">
                  
                <a href="<?php echo e(url('invoice_wise_submit_report')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Invoice Submited Report</p>
                </a>
                
              </li>
              
              <li class="nav-item">
                  
                <a href="<?php echo e(url('invoice_pendng_report')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Invoice Pending Report</p>
                </a>
                
              </li>
              
              <li class="nav-item">
                  
                <a href="<?php echo e(url('autopsy_doctor_report')); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Autopsy doctor Report</p>
                </a>
                
              </li>
		
		  </ul>
		   
		   </li>
		   <?php if(session('userType') =='admin'){?>
		    <li class="nav-item">
           
                <a href="<?php echo e(url('panel_list')); ?>" class="nav-link">
                    
                  <i class="fas fa-lock"></i>
                  
                  <p>
                     Panel
                    
                  </p>
                </a>
           
		   </li>
		   <?php }?>
		   <li class="nav-item">
           
                <a href="#" class="nav-link">
                    
                  <i class="fa fa-power-off	"></i>
                  
                  <p>
                     Logout
                    
                  </p>
                </a>
           
		   </li>
		   
    <!-- /.sidebar -->
    
  </aside><?php /**PATH /home/hpinfome/public_html/mirs/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>