<?php
session_start();
$usuario = $_SESSION['username'];

if (!isset($usuario)) {
    header("location: login.php");
} else {

?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <title>Reports - Call Center</title>
        <meta charset="utf-8">
        <meta name="author" content="Melissa Arellano,Edgar Flores">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="https://fonts.googleapis.com/css?family=Comfortaa&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
        <!-- **** Iconos **** -->
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="css/head.css">
        <link rel="icon" type="image/ico" href="img/favicon.ico" />
    </head>

    <!-- ***** NAVBAR MENU VERTICAL ***** -->
    <!-- <nav class="navbar navbar-expand-lg navbar navbar-dark bg-custom"> -->
    <nav class="navbar navbar-expand-lg navbar navbar-dark bg-company-red">
        
        <!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button> -->

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            
            <div class="sp-img">
                    <img src="img/icon-sp.png" alt="">
            </div>

            <ul class="navbar-nav mr-auto">
                <li class="nav-item">
                    <span class="reports-call-center">
                    Reports - Call Center
                    </span>
                </li>
            </ul>

            <div class="user-icon">
                <ion-icon name="person-outline"></ion-icon>
            </div>

            <div>
                <label><?php echo $usuario ?></label>
            </div>

            <div class="dark-mode">
                <ion-icon name="sunny-outline"></ion-icon>
            </div>

            <form class="form-inline my-2 my-lg-0">
                <div class="logout">
                    <a href="logout.php" data-toggle="tooltip" data-placement="top" title="Log out">
                        <span>
                        <ion-icon name="log-out-outline"></ion-icon>
                        </span>
                    </a>
                </div>
            </form>
            
            <img src="img/logo_txm.png" width="75px">
        </div>
    </nav>
    
    <!-- ***************** JUMBOTRON **************** -->
    <!-- <div class="jumbotron text-center">
        <h2>Reports - Call Center</h2>
    </div> -->

    <!-- <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
    <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script> -->
    <script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"></script>
    <script nomodule src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.js"></script>
    
    <script type="text/javascript" src="js/mode.js"></script>
<?php
}
?>