<?php $uri = service('uri'); 
check_session();?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?php echo $app_setting->application_name; ?> | Dashboard</title>
  <link rel="icon" type="image/png" sizes="192x192"  href="<?php echo base_url()?><?php echo $app_setting->fevicon; ?>">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/fontawesome-free/css/all.min.css">
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <link rel="stylesheet" href="<?php echo admin_css() ?>dist/css/adminlte.min.css">
  <link rel="stylesheet" href="<?php echo admin_css() ?>dist/css/custom.css">
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/sweetalert/sweetalert.min.css">
  <script src="<?php echo admin_css() ?>plugins/sweetalert/sweetalert.min.js"></script>
  <?php if( $uri->getSegment(2) == 'blog' || $uri->getSegment(2) == 'contact_message' || $uri->getSegment(3) == 'slider' || $uri->getSegment(3) == 'slider_stats' || $uri->getSegment(3) == 'latest_case' || $uri->getSegment(3) == 'gallery' || $uri->getSegment(3) == 'all_event' || $uri->getSegment(3) == 'all_testimonials' || $uri->getSegment(3) == 'featured_project' || $uri->getSegment(3) == 'all_donation_report' || $uri->getSegment(3) == 'all_volunteer_report' || $uri->getSegment(3) == 'short_about_us' || $uri->getSegment(3) == 'media_corner' || $uri->getSegment(3) == 'pages' || $uri->getSegment(3) == 'view_all_brand' || $uri->getSegment(3) == 'all_pages' || $uri->getSegment(3) == 'all_subscribers_report' || $uri->getSegment(3) == 'our_all_founders' || $uri->getSegment(3) == 'our_core_team' || $uri->getSegment(3) == 'view_all_member' || $uri->getSegment(3) == 'view_all_course' || $uri->getSegment(3) == 'view_all_employee' || $uri->getSegment(3) == 'view_all_batch' || $uri->getSegment(3) == 'view_all_admission' || $uri->getSegment(3) == 'add_new_admission' || $uri->getSegment(3) == 'view_all_booking' || $uri->getSegment(3) == 'view_all_camp' || $uri->getSegment(3) == 'view_all_sharnarthi' || $uri->getSegment(3) == 'all_expense' || $uri->getSegment(3) == 'all_income' || $uri->getSegment(3) == 'role_permission' || $uri->getSegment(3) == 'view_all_designation'): ?>
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
   <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/datatables-buttons/css/buttons.bootstrap4.min.css">

  <?php 
  endif;
  if($uri->getSegment(3) == 'visual_setting'): ?>
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
  <?php 
  endif;
  if($uri->getSegment(3) == 'application_setting'  || $uri->getSegment(3) == 'add_new_blog' || $uri->getSegment(3) == 'update_blog' || $uri->getSegment(3) == 'add_new_user' || $uri->getSegment(3) == 'update_user' || $uri->getSegment(2) == 'contact_message' || $uri->getSegment(3) == 'add_new_product' || $uri->getSegment(3) == 'edit_product' || $uri->getSegment(3) == 'about_us' || $uri->getSegment(3) == 'pages' || $uri->getSegment(3) == 'add_new_case' || $uri->getSegment(3) == 'edit_case' || $uri->getSegment(3) == 'add_new_event' || $uri->getSegment(3) == 'edit_event' || $uri->getSegment(3) == 'add_new_project' || $uri->getSegment(3) == 'edit_featured_project' || $uri->getSegment(3) == 'short_about_us' || $uri->getSegment(3) == 'add_new_page' || $uri->getSegment(3) == 'edit_page' || $uri->getSegment(3) == 'send_email' || $uri->getSegment(3) == 'sending_email'): ?>
  <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/summernote/summernote-bs4.min.css">
  <?php endif;?>
  <script src="<?php echo admin_css() ?>dist/js/3.5.1.jquery.min.js"></script>
</head>


<body class="hold-transition sidebar-mini layout-fixed <?php if($uri->getSegment(3) == 'add_new_sharnarthi'){echo 'sidebar-collapse';}?>">
<div class="wrapper">

 <!-- 
  <div class="preloader flex-column justify-content-center align-items-center">
    <img class="animation__shake" src="<?php echo base_url()?><?php echo $app_setting->admin_panel_logo; ?>" alt="<?php echo $app_setting->application_name; ?>" width="100">
  </div> -->
  <div class="loader" style="display:none"></div>
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
    </ul>
    <ul class="navbar-nav">
      <li class="nav-item">
         <a class="nav-link" target="_blank" style="padding: 0rem 1rem;" href="<?php echo base_url() ?>"  role="button"><button class="btn btn-outline-success btn-sm view-website"><i class="fa fa-home"></i>&nbsp;Home</button></a>
      </li>
   </ul>
    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <li class="nav-item dropdown">
         <a class="nav-link" data-toggle="dropdown" href="#">
         <i class="fa fa-cog"></i>
         </a>
         <div class="dropdown-menu dropdown-menu-xs dropdown-menu-right">
            <span class="dropdown-item dropdown-header">Profile</span>
            <div class="dropdown-divider"></div>
            <a href="<?php echo base_url() ?>/admin/update_profile/" class="dropdown-item">Update Profile
            </a>
            <?php if(user()->user_role == 'State Head' || user()->user_role == 'Dist Head' || user()->user_role == 'Taluka Head' || user()->user_role == 'Store' || user()->user_role == 'Filed Executive' || user()->user_role == 'Dealer'): ?>
              <div class="dropdown-divider"></div>
              <a href="<?php echo base_url() ?>/admin/update_stock_point/" class="dropdown-item">Update Stock Point
              </a>
            <?php endif; ?>
             <div class="dropdown-divider"></div>
             <a href="<?php echo base_url() ?>/admin/update_password" class="dropdown-item">Change Password
             </a>
            <div class="dropdown-divider"></div>
            <a href="<?php echo base_url() ?>/admin/logout" class="dropdown-item">Logout
            </a>
         </div>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="<?php echo base_url()?>/admin/dashboard" class="brand-link">
      <img src="<?php echo base_url()?><?php echo $app_setting->admin_panel_logo; ?>" alt="<?php echo $app_setting->application_name; ?>" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light"><?php echo $app_setting->application_name; ?></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 base_url()?><?php echo user()->user_image; ?>" class="img-circle elevation-2" alt="<?php echo user()->user_name; ?>">
        </div>
        <div class="info">
          <a href="#" style="margin-bottom: -5px;" class="d-block"><?php echo user()->user_name; ?></a>
          <span style="color:#c2c7d0;font-size:12px">( <?php if(user()->user_role == 'State Head'){echo 'Level 1';}elseif(user()->user_role == 'Dist Head'){echo 'Level 2';}elseif(user()->user_role == 'Taluka Head'){ echo 'Level 3';}else{ echo user()->user_role;} ?> )</span>
        </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 <?php if($uri->getSegment(2) == 'dashboard'){echo 'menu-open';}?>">
            <a href="<?php echo base_url()?>/admin/dashboard" class="nav-link <?php if($uri->getSegment(2) == 'dashboard'){echo 'active';}?>">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Dashboard 
              </p>
            </a>
          </li>
            <?php
            if(check_user_permission('member')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'member'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'member'){echo 'active';}?>">
                <i class="nav-icon fas fa-users"></i>
                <p>
                  Member
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/member/view_all_designation" class="nav-link <?php if($uri->getSegment(3) == 'view_all_designation'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Designation</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/member/view_all_member" class="nav-link <?php if($uri->getSegment(3) == 'view_all_member'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Member</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php
            endif;
            if(check_user_permission('admission')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'admission'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'admission'){echo 'active';}?>">
                <i class="nav-icon fa fa-pencil"></i>
                <p>
                  Admission
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/admission/view_all_course" class="nav-link <?php if($uri->getSegment(3) == 'view_all_course'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Course</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/admission/view_all_batch" class="nav-link <?php if($uri->getSegment(3) == 'view_all_batch'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Batch</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/admission/view_all_admission" class="nav-link <?php if($uri->getSegment(3) == 'view_all_admission'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Admission</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php
            endif;
            if(check_user_permission('venue')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'venue'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'venue'){echo 'active';}?>">
                <i class="nav-icon fa fa-calendar"></i>
                <p>
                  Venue Booking
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/venue/view_all_booking" class="nav-link <?php if($uri->getSegment(3) == 'view_all_booking'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Booking</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php
            endif;
            if(check_user_permission('sharnarthi')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'sharnarthi'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'sharnarthi'){echo 'active';}?>">
                <i class="nav-icon fas fa-walking"></i>
                <p>
                  Sharnarthi
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/sharnarthi/view_all_camp" class="nav-link <?php if($uri->getSegment(3) == 'view_all_camp'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Camp</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/sharnarthi/view_all_sharnarthi" class="nav-link <?php if($uri->getSegment(3) == 'view_all_sharnarthi'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Sharnarthi</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php 
            endif;
            if(check_user_permission('role_mgmt')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'user'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'user'){echo 'active';}?>">
                <i class="nav-icon fas fa-tasks"></i>
                <p>
                  Role Management
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/user/role_permission" class="nav-link <?php if($uri->getSegment(3) == 'role_permission'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Role Permission</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php 
            endif;
            if(check_user_permission('employee')): ?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'employee'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'employee'){echo 'active';}?>">
                <i class="nav-icon fas fa-user-cog"></i>
                <p>
                  Workforce Mgmt.
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/employee/view_all_employee" class="nav-link <?php if($uri->getSegment(3) == 'view_all_employee'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Workforce</p>
                  </a>
                </li>
              </ul>
            </li>
            <?php 
            endif;
            if(check_user_permission('blog')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'blog'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'blog'){echo 'active';}?>">
                <i class="nav-icon fas fa-blog"></i>
                <p>
                  Blog
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/blog/blog_category" class="nav-link <?php if($uri->getSegment(3) == 'blog_category'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Blog Category</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/blog/add_new_blog" class="nav-link <?php if($uri->getSegment(3) == 'add_new_blog'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Add New Blog</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/blog/view_all_blog" class="nav-link <?php if($uri->getSegment(3) == 'view_all_blog'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Blog</p>
                  </a>
                </li>
                <li class="nav-item d-none">
                  <a href="<?php echo base_url()?>/admin/blog/view_all_comment" class="nav-link <?php if($uri->getSegment(3) == 'view_all_comment'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>View All Comment</p>
                  </a>
                </li>
                
              </ul>
            </li>
          <?php endif;
          if(check_user_permission('expense_management')): ?>
          <li class="nav-item has-treeview <?php if($uri->getSegment(2)  == "expense"){ echo "menu-open";}?>">
            <a href="#" class="nav-link <?php if($uri->getSegment(2)  == "expense"){ echo "active";}?>">
              <i class="nav-icon fas fa-money"></i>
              <p>
                Expense Management
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item ">
                <a href="<?php echo base_url() ?>/admin/expense/all_expense" class="nav-link <?php if($uri->getSegment(3)  =="all_expense"){echo 'active';}?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>All Expense</p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo base_url() ?>/admin/expense/all_income" class="nav-link <?php if($uri->getSegment(3)  =="all_income"){echo 'active';}?>">
                  <i class="far fa-circle nav-icon"></i>
                  <p>All Income</p>
                </a>
              </li>
            </ul>
          </li>
          <?php endif;
          if(check_user_permission('report')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'report'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'report'){echo 'active';}?>">
                <i class="nav-icon fas fa-chart-line"></i>
                <p>
                  Report
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/report/all_donation_report" class="nav-link <?php if($uri->getSegment(3) == 'all_donation_report'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>All Donation Report</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/report/all_volunteer_report" class="nav-link <?php if($uri->getSegment(3) == 'all_volunteer_report'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>All Volunteer Report</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/report/all_subscribers_report" class="nav-link <?php if($uri->getSegment(3) == 'all_subscribers_report'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>All Subscribers Report</p>
                  </a>
                </li>
              </ul>
            </li>
          <?php endif;
          if(check_user_permission('send_email')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'email'){echo 'menu-open';}?>">
              <a href="<?php echo base_url()?>/admin/email/sending_email" class="nav-link <?php if($uri->getSegment(2) == 'email'){echo 'active';}?>">
                <i class="nav-icon fas fa-envelope"></i>
                <p>
                  Send Email
                </p>
              </a>
            </li>
          <?php endif;
          if(check_user_permission('contact_message')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'contact_message'){echo 'menu-open';}?>">
              <a href="<?php echo base_url()?>/admin/contact_message" class="nav-link <?php if($uri->getSegment(2) == 'contact_message'){echo 'active';}?>">
                <i class="nav-icon fas fa-comments"></i>
                <p>
                  Contact Message 
                </p>
              </a>
            </li>
          <?php endif;
            if(check_user_permission('main_page_setting')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'main_page_setting'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'main_page_setting'){echo 'active';}?>">
                <i class="nav-icon fas fa-home"></i>
                <p>
                  Main Page Setting
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/menu_name_setting" class="nav-link <?php if($uri->getSegment(3) == 'menu_name_setting'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Menu Name Setting</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/heading_sub_heading" class="nav-link <?php if($uri->getSegment(3) == 'heading_sub_heading'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Heading & Sub Heading</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/slider" class="nav-link <?php if($uri->getSegment(3) == 'slider'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Slider</p>
                  </a>
                </li>
                <li class="nav-item d-none">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/slider_stats" class="nav-link <?php if($uri->getSegment(3) == 'slider_stats'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Slider Stats</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/short_about_us" class="nav-link <?php if($uri->getSegment(3) == 'short_about_us'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p> About Us</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/featured_project" class="nav-link <?php if($uri->getSegment(3) == 'featured_project'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Featured Projects</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/media_corner" class="nav-link <?php if($uri->getSegment(3) == 'media_corner'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Media Corner</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/became_a_volunteer" class="nav-link <?php if($uri->getSegment(3) == 'became_a_volunteer'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Became a Volunteer</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/latest_case" class="nav-link <?php if($uri->getSegment(3) == 'latest_case'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Latest Case</p>
                  </a>
                </li>
                <!-- <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/counting_stats" class="nav-link <?php if($uri->getSegment(3) == 'counting_stats'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Counting Stats</p>
                  </a>
                </li> -->
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/gallery" class="nav-link <?php if($uri->getSegment(3) == 'gallery'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Gallery</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url() ?>/admin/main_page_setting/view_all_brand" class="nav-link <?php if($uri->getSegment(3)=="view_all_brand"){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>All Donor Company</p>
                  </a>
                </li> 
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/all_event" class="nav-link <?php if($uri->getSegment(3) == 'all_event'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Event</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/all_testimonials" class="nav-link <?php if($uri->getSegment(3) == 'all_testimonials'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Testimonials</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/all_pages" class="nav-link <?php if($uri->getSegment(3) == 'pages'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Pages</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/our_all_founders" class="nav-link <?php if($uri->getSegment(3) == 'our_all_founders'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Our Founders</p>
                  </a>
                </li>
                <li class="nav-item ">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/our_core_team" class="nav-link <?php if($uri->getSegment(3) == 'our_core_team'){echo 'active';}?>">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Our Core Team</p>
                  </a>
                </li>
              </ul>
            </li>
          <?php endif;
          if(check_user_permission('setting')):?>
            <li class="nav-item <?php if($uri->getSegment(2) == 'setting'){echo 'menu-open';}?>">
              <a href="#" class="nav-link <?php if($uri->getSegment(2) == 'setting'){echo 'active';}?>">
                <i class="nav-icon fas fa-copy"></i>
                <p>
                  Settings
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <?php if(user()->user_role == 'Admin'): ?>
                  <li class="nav-item ">
                    <a href="<?php echo base_url()?>/admin/setting/application_setting" class="nav-link <?php if($uri->getSegment(3) == 'application_setting'){echo 'active';}?>">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Application Setting</p>
                    </a>
                  </li>
                  <li class="nav-item ">
                    <a href="<?php echo base_url()?>/admin/setting/visual_setting" class="nav-link <?php if($uri->getSegment(3) == 'visual_setting'){echo 'active';}?>">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Visual Setting</p>
                    </a>
                  </li>
                <?php endif; ?>
              </ul>
            </li>
          <?php endif;?>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>
<?php 
  $errors =  session()->get('error');
  if (isset($errors)) 
  {?>
    <script>
    swal ( "Oops" ,  "<?php echo $errors?>" ,  "error" )
  </script>
    <?php }
  session()->remove('error');
  $success =  session()->get('success');
  if (isset($success)) 
  {?>
    <script>
    swal ( "Done" ,  "<?php echo $success?>" ,  "success" )
  </script>
  <?php }
  session()->remove('success');
?>