<?php 
$class=$this->router->fetch_class(); 
$function_name=$this->router->fetch_method();
?>
<?php  
$user_exsist = $this->db->select('*')->where('admin_id', $this->session->userdata('admin_id'))->get('admin')->result_array();
?>
<!doctype html>
<html lang="en">
<head>
      <!-- Required meta tags -->
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <title>Top Truf Arena || Admin Panel</title>
      <!-- Favicon -->
      <link rel="shortcut icon" href="<?php echo base_url(); ?>img/logo.png" />
      <!-- Bootstrap CSS -->
      <link rel="stylesheet" href="<?php echo base_url(); ?>css/bootstrap.min.css">
      <!-- Typography CSS -->
      <link rel="stylesheet" href="<?php echo base_url(); ?>css/typography.css">
      <!-- Style CSS -->
      <link rel="stylesheet" href="<?php echo base_url(); ?>css/style.css">
      <!-- Responsive CSS -->
      <link rel="stylesheet" href="<?php echo base_url(); ?>css/responsive.css">
       <!-- Full calendar -->
      <link href='fullcalendar/core/main.css' rel='stylesheet' />
      <link href='fullcalendar/daygrid/main.css' rel='stylesheet' />
      <link href='fullcalendar/timegrid/main.css' rel='stylesheet' />
      <link href='fullcalendar/list/main.css' rel='stylesheet' />

      <link rel="stylesheet" href="<?php echo base_url(); ?>css/flatpickr.min.css">

      <script src="https://code.jquery.com/jquery-1.9.1.js"></script>
   </head>
   <body class="sidebar-main-menu">
      <!-- Wrapper Start -->
      <div class="wrapper">
         <!-- Sidebar  -->
         <div class="iq-sidebar">
            <div class="iq-sidebar-logo d-flex justify-content-between">
               <a href="<?php echo base_url(); ?>AdminDashboard">
               <img src="<?php echo base_url(); ?>img/logo.png" class="img-fluid" alt="">
               <!-- <span>Hotel Manish</span> -->
               </a>
               <div class="iq-menu-bt-sidebar">
                     <div class="iq-menu-bt align-self-center">
                        <div class="wrapper-menu ">
                           <div class="main-circle"><i class="ri-more-fill"></i></div>
                           <div class="hover-circle"><i class="ri-more-2-fill"></i></div>
                        </div>
                     </div>
                  </div>
            </div>

            <div id="sidebar-scrollbar">
               <nav class="iq-sidebar-menu">
                  <ul id="iq-sidebar-toggle" class="iq-menu">
                     <li <?php if($class=='AdminDashboard') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>AdminDashboard" class="iq-waves-effect"><i class="ri-home-8-fill"></i><span>Dashboard</span></a>
                     </li>   
                     <li <?php if($class=='game' || $class=='Game') { ?> class="active" <?php } ?>><a href="<?php echo base_url(); ?>game/" class="iq-waves-effect"><i class="fa fa-gamepad" aria-hidden="true"></i><span>Game</span></a></li>
                     <li <?php if($class=='pitches' || $class=='Pitches') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>pitches/" class="iq-waves-effect"><i class="fa fa-file-text-o" aria-hidden="true"></i> <span>Manage Pitches </span></a>
                     </li>
                     <li <?php if($class=='booking' || $class=='Booking') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>booking/" class="iq-waves-effect"><i class="fa fa-money" aria-hidden="true"></i> <span>Booking Details</span></a>
                     </li>
                     <li <?php if($class=='booking' || $class=='Booking') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>booking/add" class="iq-waves-effect"><i class="fa fa-ticket" aria-hidden="true"></i> <span>Booking Now</span></a>
                     </li>
                     <li <?php if($class=='customer' || $class=='Customer') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>customer/" class="iq-waves-effect"><i class="fa fa-user" aria-hidden="true"></i> <span>Users</span></a>
                     </li>
                     <li <?php if($class=='report' || $class=='Report') { ?> class="active" <?php } ?>>
                        <a href="<?php echo base_url(); ?>report/" class="iq-waves-effect"><i class="fa fa-bar-chart" aria-hidden="true"></i> <span>Reports</span></a>
                     </li>
                     
                     <!-- <li>
                        <a href="#Report" class="iq-waves-effect collapsed" data-toggle="collapse" aria-expanded="false"><i class="fa fa-bar-chart" aria-hidden="true"></i><span>Reports</span><i class="ri-arrow-right-s-line iq-arrow-right"></i></a>
                        <ul id="Report" class="iq-submenu collapse" data-parent="#iq-sidebar-toggle">
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>Daily Transaction Report</a></li>
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>All Transaction</a></li>
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>OPD Report</a></li>
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>IPD Report</a></li>
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>Balance Report</a></li>
                           <li><a href="#"><i class="fa fa-long-arrow-right" aria-hidden="true"></i>Bill Report</a></li>
                        </ul>
                     </li> -->
                     
                     
                  </ul>
               </nav>
               <div class="p-3"></div>
            </div>
         </div>
         
         <!-- Page Content  -->
         <div id="content-page" class="content-page">
            <!-- TOP Nav Bar -->
         <div class="iq-top-navbar header-top-sticky">
            <div class="iq-navbar-custom">
               <div class="iq-sidebar-logo">
                  <div class="top-logo">
                     <a href="<?php echo base_url(); ?>AdminDashboard" class="logo">
                     <img src="<?php echo base_url(); ?>images/logo.png" class="img-fluid" alt="">
                     <span>JIMSH</span>
                     </a>
                  </div>
               </div>
               <nav class="navbar navbar-expand-lg navbar-light p-0">
                  <div class="iq-search-bar">
                     <!-- <form action="#" class="searchbox">
                        <input type="text" class="text search-input" placeholder="Type here to search...">
                        <a class="search-link" href="#"><i class="ri-search-line"></i></a>
                     </form> -->
                  </div>
                  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                  <i class="ri-menu-3-line"></i>
                  </button>
                  <div class="iq-menu-bt align-self-center">
                     <div class="wrapper-menu">
                        <div class="main-circle"><i class="ri-more-fill"></i></div>
                           <div class="hover-circle"><i class="ri-more-2-fill"></i></div>
                     </div>
                  </div>
                  <div class="collapse navbar-collapse" id="navbarSupportedContent">
                     <ul class="navbar-nav ml-auto navbar-list">
                        <li class="nav-item iq-full-screen">
                           <a href="#" class="iq-waves-effect" id="btnFullscreen"><i class="ri-fullscreen-line"></i></a>
                        </li>
                     </ul>
                  </div>
                  <ul class="navbar-list">
                     <li>
                        <a href="#" class="search-toggle iq-waves-effect d-flex align-items-center">
                           <img src="<?php echo base_url(); ?>images/user/01.jpg" class="img-fluid rounded mr-3" alt="user">
                           <div class="caption">
                              <h6 class="mb-0 line-height"><?php echo $user_exsist[0]['fullname']; ?></h6>
                              <span class="font-size-12">Admin</span>
                           </div>
                        </a>
                        <div class="iq-sub-dropdown iq-user-dropdown">
                           <div class="iq-card shadow-none m-0">
                              <div class="iq-card-body p-0 ">
                                 <div class="bg-primary p-3">
                                    <h5 class="mb-0 text-white line-height">Hello, <?php  echo $user_exsist[0]['fullname']; ?></h5>
                                    <!-- <span class="text-white font-size-12">Available</span> -->
                                 </div>
                                 <a href="<?php echo base_url(); ?>Profile/ChangeDetails/" class="iq-sub-card iq-bg-primary-hover">
                                    <div class="media align-items-center">
                                       <div class="rounded iq-card-icon iq-bg-primary">
                                          <i class="ri-file-user-line"></i>
                                       </div>
                                       <div class="media-body ml-3">
                                          <h6 class="mb-0 ">My Profile</h6>
                                          <p class="mb-0 font-size-12">View personal profile details.</p>
                                       </div>
                                    </div>
                                 </a>
                                 <a href="<?php echo base_url(); ?>Profile/ChangePassword/" class="iq-sub-card iq-bg-primary-hover">
                                    <div class="media align-items-center">
                                       <div class="rounded iq-card-icon iq-bg-primary">
                                          <i class="ri-lock-line"></i>
                                       </div>
                                       <div class="media-body ml-3">
                                          <h6 class="mb-0 ">Password Settings</h6>
                                          <p class="mb-0 font-size-12">Control your privacy parameters.</p>
                                       </div>
                                    </div>
                                 </a>
                                 <div class="d-inline-block w-100 text-center p-3">
                                    <a class="bg-primary iq-sign-btn" href="<?php echo base_url() ?>/logout" role="button">Sign out<i class="ri-login-box-line ml-2"></i></a>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </li>
                  </ul>
               </nav>

            </div>
         </div>
         <!-- TOP Nav Bar END -->



<link rel="stylesheet" href="<?php echo base_url(); ?>css/site-demos.css">
<script src="<?php echo base_url(); ?>js/jquery.validate.min.js"></script>
<script src="<?php echo base_url(); ?>js/additional-methods.min.js"></script>
