<?php
if (!isset($this->session->userdata['session_data'])) {
  $url = base_url() . 'site/login';
  header("location: $url");
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Claw Master</title>
    <link rel="stylesheet" href="<?=base_url()?>assets/css/style.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/machineInfo.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/dashboard.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/reports.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/location.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/smartRoute.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/selection.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/profile.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/addMachine.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/signup.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/login.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/availableJobs.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/information.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/elevator.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/jobFairs.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/candidates.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/postedJobs.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/postNewJobPage.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/jobdetails-1.css">
    <link rel="stylesheet" href="<?=base_url()?>assets/css/employerIndividualJobPosting.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/css/intlTelInput.css" />
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/css/bootstrap-select.min.css">
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>

<body class="bg-color">
    <div class="bg-color box-shadow-navbar">
        <div class="container container-media">
            <nav class="navbar navbar-expand-lg navbar-light">
                <div class="container-fluid">
                    <!-- <a class="navbar-brand" href="index.php">
          <img src="./assets/images/easyapplylogo1.png" alt="logo">
        </a> -->
                    <button class="navbar-toggler" onclick="toggleHideShow()" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse media-margin" id="navbarSupportedContent">
                        <ul class="home-list search-width navbar-nav mb-2 mb-lg-0 w-100 align-items-center">
                            <li class="nav-item d-flex align-items-center localLi">
                                <a class="nav-link atag-header home active" href="<?=base_url()?>site">Home</a>
                            </li>

                            <li class="nav-item d-flex align-items-center localLi">
                                <a class="nav-link atag-header" href="<?=base_url()?>site/locations">Locations</a>
                            </li>

                            <li class="nav-item d-flex align-items-center localLi">
                                <a class="nav-link atag-header" href="<?=base_url()?>site/reports">Reports</a>
                            </li>

                            <li class="nav-item d-flex align-items-center localLi">
                                <a class="nav-link atag-header" href="<?=base_url()?>site/smartRoute">Smart Route</a>
                            </li>

                            <div class="input-group search position-relative">
                                <div class="form-outline position-absolute">
                                    <input type="search" id="search" class="form-control search-input" placeholder="Search Locations" />
                                </div>
                                <button type="button" class="btn btn-search position-absolute">
                                    <!-- <i class="fas fa-search" style="font-size: 14px;"></i> -->
                                    <img src="<?=base_url()?>assets/images-claw/Icon feather-search.png" class="fas fa-search" alt="Search">
                                </button>
                            </div>
                        </ul>

                        <div class="d-flex btns-user-header">
                            <a class="machine-add" href="<?=base_url()?>site/addMachine">
                                <button class="btn btn-lg btn-job-seeker background-btn-color height-header w-100 mb-0" type="button">+ Add Machine</button>
                            </a>

                            <li class="nav-item dropdown btn btn-lg btn-job-seeker user-content p-0">
                                <!-- <a class="nav-link atag-header dropdown-toggle p-0" href="./profile.php" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded=""> -->
                                <a class="nav-link atag-header dropdown-toggle p-0" href="<?=base_url()?>site/logout">
                                    <img src="<?=base_url()?>assets/images-claw/Ellipse 1.png" class="user-image" alt="user">
                                    Hey, <span class="name-user"> Jhon </span>
                                </a>
                                <!-- <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                <li><a class="dropdown-item" href="#">Action</a></li>
                <li>
                  <hr class="dropdown-divider">
                </li>
                <li><a class="dropdown-item" href="#">Another action</a></li>
                <li>
                  <hr class="dropdown-divider">
                </li>
                <li><a class="dropdown-item" href="#">Something else</a></li>
              </ul> -->
                            </li>
                        </div>
                    </div>
                </div>
            </nav>
        </div>
    </div>



    <!-- <div class="height-css"> -->
    <div class="flex-column flex-shrink-0 style-sidebar showSideBar" id="showSideBar" style="background-color: #F5F7F9;">
        <ul class="nav nav-pills flex-column mb-auto list-sidebar">
            <li class="nav-item nav-item-sidebar">
                <a href="<?=base_url()?>site/login" class="nav-link sidebar-atag">
                    <img src="<?=base_url()?>assets/images-claw/Icon open-account-logout.png" class="elevator-icon" alt="icon">
                    Log Out
                </a>
            </li>
        </ul>
    </div>

    <!-- </div> -->