<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>DLRL KRC Reports</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/fontawesome-free/css/all.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/jquery-ui/jquery-ui.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/icheck-bootstrap/icheck-bootstrap.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/dist/css/adminlte.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/overlayScrollbars/css/OverlayScrollbars.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/daterangepicker/daterangepicker.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/select2/css/select2.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'); ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/datatables-bs4/css/dataTables.bootstrap4.css'); ?>">
  <?php
  $this->load->helper('settings');
  $this->load->database();
  $font_cfg = app_font_config();
  $font_css = app_font_css_raw();
  $google_href = app_font_google_href();
  if ($google_href) {
      echo '<link href="' . htmlspecialchars($google_href) . '" rel="stylesheet">' . "\n  ";
  }
  ?>
  <link rel="stylesheet" href="<?php echo base_url('assets/css/koha-report.css'); ?>?v=20260808c">
  <script src="<?php echo base_url('assets/plugins/jquery/jquery.min.js'); ?>"></script>
  <style id="krc-app-font">
    :root {
      --font-sans: <?php echo $font_css; ?>;
      --font-family-sans-serif: <?php echo $font_css; ?>;
    }
    html body.koha-app,
    html body.koha-app *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]) {
      font-family: <?php echo $font_css; ?> !important;
    }
    /* Allow Font Settings live preview to override selected font */
    #fontPreview,
    #fontPreview * {
      font-family: inherit !important;
    }
    .select2-container .select2-selection--single { height: 38px !important; }
    .select2-container .select2-selection--multiple { min-height: 38px !important; }
  </style>
</head>
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed koha-app" style="font-family: <?php echo $font_css; ?> !important;" data-app-font="<?php echo htmlspecialchars($font_cfg['key']); ?>">
<div class="wrapper">
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
  <ul class="navbar-nav align-items-center">
    <li class="nav-item">
      <a class="nav-link" data-widget="pushmenu" href="#" role="button" title="Toggle menu"><i class="fas fa-bars"></i></a>
    </li>
    <li class="nav-item d-none d-md-block">
      <div class="navbar-brand-inline">
        <div>
          <span class="brand-name">DLRL Koha Reports</span>
          <span class="brand-sub">Knowledge Resource Centre</span>
        </div>
      </div>
    </li>
  </ul>
  <ul class="navbar-nav ml-auto align-items-center">
    <?php
    $nav_user = $this->session->userdata('uname');
    $nav_role = $this->session->userdata('role_name');
    if (!$nav_role && $this->session->userdata('is_superadmin')) {
        $nav_role = 'Super Admin';
    }
    if ($nav_user) {
    ?>
    <li class="nav-item">
      <span class="navbar-user-chip">
        <i class="fas fa-user-circle"></i>
        <?php echo htmlspecialchars($nav_user); ?>
        <?php if ($nav_role) { ?>
          <span class="text-muted" style="font-weight:400">· <?php echo htmlspecialchars($nav_role); ?></span>
        <?php } ?>
      </span>
    </li>
    <?php } ?>
  </ul>
</nav>
