<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title> DMS 2025</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- Bootstrap 5 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">  <!-- FontAwesome -->
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
  <link rel="stylesheet" href="<?= base_url('public/assets/css/newstyle.css') ?>">

  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">

  <!-- code for curve background ends here -->
    
    <script src="<?= base_url('public/assets/js/jquery-3.6.0.min.js') ?>"></script>
    <script src="<?= base_url('public/assets/js/bootstrap.bundle.min.js') ?>"></script>
    <!--<script src="<?= base_url('assets/js/script.js') ?>"></script>-->
    <script src="<?= base_url('public/assets/js/bootstrap-datepicker.min.js') ?>"></script>
</head>
<body>

<?php
// Get the first segment of URL (controller name)
echo $current_menu = $this->uri->segment(1);
?>
<!-- Sidebar -->
<div class="sidebar">
  <div class="brand"><i class="fa-solid fa-file-lines"></i> DMS 2025 -------------------------------</div>
  <a class="nav-link <?= ($current_menu == 'authority') ? 'active' : '' ?>"" href="<?= base_url('authority') ?>"><i class="fa-solid fa-building"></i> Authority</a>
  <a class="nav-link <?= ($current_menu == 'authorityType') ? 'active' : '' ?>"" href="<?= base_url('authorityType') ?>"><i class="fa-solid fa-diagram-project"></i> Authority Type</a>
  <a class="nav-link <?= ($current_menu == 'documents') ? 'active' : '' ?>"" href="<?= base_url('documents') ?>"><i class="fa-solid fa-file"></i> Documents</a>
  <a class="nav-link <?= ($current_menu == 'company') ? 'active' : '' ?>"" href="<?= base_url('company') ?>"><i class="fa-solid fa-industry"></i> Company</a>
  <a class="nav-link <?= ($current_menu == 'userroles') ? 'active' : '' ?>"" href="<?= base_url('userroles') ?>"><i class="fa-solid fa-users-gear"></i> User Roles</a>
  <a class="nav-link <?= ($current_menu == 'users') ? 'active' : '' ?>"" href="<?= base_url('users') ?>"><i class="fa-solid fa-user"></i> Users</a>
</div>