<?php
// function activate_menu($controller) {
//   $CI = get_instance();
//   $last = $CI->uri->total_segments();
//   $seg = $CI->uri->segment($last);
//   if(is_numeric($seg)) {
//     $seg = $CI->uri->segment($last-1);
//   }
//   if (in_array($controller, array($seg))) {
//       return 'active';
//   } else {
//       return '';   
//   } 
// }
if (!isset($this->session->userdata['session_data'])) {
  $url = base_url() . 'login';
  header("location: $url");
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <!-- basic -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- mobile metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- site metas -->
    <title>GimAfrica Admin Panel</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- site icon -->
    <link rel="icon" href="<?= base_url() ?>assets/images/favicon.png" type="image/png" />
    <!-- bootstrap css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/bootstrap.min.css" />
    <!-- site css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/style.css" />
    <!-- responsive css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/responsive.css" />
    <!-- color css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/colors.css" />
    <!-- select bootstrap -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/bootstrap-select.css" />
    <!-- scrollbar css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/perfect-scrollbar.css" />
    <!-- custom css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/custom.css" />
    <!-- calendar file css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/js/semantic.min.css" />
    <!-- fancy box js -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/css/jquery.fancybox.css" />
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap4.min.css" />
    <!-- calendar file css -->
    <link rel="stylesheet" href="<?= base_url() ?>assets/js/semantic.min.css" />
    <link href="<?= base_url() ?>assets/plugins/toast/toast.min.css" rel="stylesheet">
    <link href="<?= base_url() ?>assets/plugins/fontawesome-free/css/all.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
      <![endif]-->
</head>

<body class="dashboard dashboard_1">
    <div class="full_container">
        <div class="inner_container">