<?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" data-bs-theme="light">


<!-- Mirrored from codervent.com/matoxi/demo/vertical-menu/index2.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 09 Jan 2024 16:36:45 GMT -->

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Naseej</title>
  <!--favicon-->



<!-- plugins -->
<link href="<?= base_url('assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css') ?>" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?= base_url('assets/plugins/metismenu/metisMenu.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= base_url('assets/plugins/metismenu/mm-vertical.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= base_url('assets/plugins/simplebar/css/simplebar.css') ?>">
<!-- bootstrap css -->
<link href="<?= base_url('assets/css/bootstrap.min.css') ?>" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Outlined" rel="stylesheet">
<!-- main css -->
<link href="<?= base_url('assets/css/bootstrap-extended.css') ?>" rel="stylesheet">
<link href="<?= base_url('assets/main.css') ?>" rel="stylesheet">
<link href="<?= base_url('assets/dark-theme.css') ?>" rel="stylesheet">
<link href="<?= base_url('assets/semi-dark.css') ?>" rel="stylesheet">
<link href="<?= base_url('assets/bordered-theme.css') ?>" rel="stylesheet">
<link href="<?= base_url('assets/responsive.css') ?>" rel="stylesheet">


</head>

<body>

<style>
.loader {
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.loader-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

</style>

