<?php

session_start();
ob_start();



require_once("config/db.php");
require_once("models/res_roles.class.php");
require_once("config/base.php");



$_SESSION['user_id'] = 1;
if (!isset($_SESSION['userId'])) {
    include_once('view/pages/login.php');
} else {

?>







    <!-- Head start -->
    <?php include_once("view/layout/head.php") ?>
    <!-- Head end -->



    <!-- Sidebar Start -->
    <?php include_once("view/layout/sidebar.php") ?>
    <!-- Sidebar End -->


    <!-- Content Start -->
    <div class="content">
        <!-- Navbar Start -->
        <?php include_once("view/layout/navbar.php") ?>
        <!-- Navbar End -->


        <!-- Sale & Revenue Start -->
        <div class="container-fluid pt-4 px-4">

            <?php include("route.php") ?>

        </div>
        <!-- Sale & Revenue End -->





        <!-- Footer Start -->
        <?php include_once("view/layout/footer.php") ?>
        <!-- Footer End -->
    </div>
    <!-- Content End -->


    <!-- Back to Top -->
    <a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
    </div>

    <!-- JavaScript Libraries -->
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="lib/chart/chart.min.js"></script>
    <script src="lib/easing/easing.min.js"></script>
    <script src="lib/waypoints/waypoints.min.js"></script>
    <script src="lib/owlcarousel/owl.carousel.min.js"></script>
    <script src="lib/tempusdominus/js/moment.min.js"></script>
    <script src="lib/tempusdominus/js/moment-timezone.min.js"></script>
    <script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>

    <!-- Template Javascript -->
    <script src="js/main.js"></script>


    
    </body>

    </html>

<?php } ?>