<?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>Powerlift Admin Panel</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- site icon -->
    <!-- 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" />
    <!-- select bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
    <!--
    <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" />

    <!-- 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]-->
    <script src="https://unpkg.com/dropzone@5/dist/min/dropzone.min.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/dropzone@5/dist/min/dropzone.min.css" type="text/css" />

  </head>

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