<?php

function __construct(){

    echo <<<EOT

        <!DOCTYPE html>

        <html lang="en">

        <head>
            <meta charset='utf-8' />
            <meta http-equiv='X-UA-Compatible' content='IE=edge' />
            <!-- Mobile Metas -->
            <meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no' />
            <!-- Site Metas -->
            <meta name='keywords' content='' />
            <meta name='description' content='' />
            <meta name='author' content='' />
            <link rel='shortcut icon' href='images/logo.svg' type='image/x-icon' />
            <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=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
                rel="stylesheet">
            <title>Safesure</title>
            <link href="css/style.css" rel="stylesheet">
        </head>

    EOT;
}

function create_menu(){

    echo <<<EOT

    $active = "class='nav_active'";
    $side_active = "sidenav_active";
    // echo $_SERVER['REQUEST_URI'];
    if ($_SERVER['REQUEST_URI'] == "/Q_Enterprices/index.php") {
        $home = $active;
        $side_home = $side_active;
    } elseif ($_SERVER['REQUEST_URI'] == "/Q_Enterprices/in_store_radio.php") {
        $radio = $active;
        $side_radio = $side_active;
    } elseif ($_SERVER['REQUEST_URI'] == "/Q_Enterprices/mc_services.php") {
        $mc = $active;
        $side_mc = $side_active;
    } elseif ($_SERVER['REQUEST_URI'] == "/Q_Enterprices/voiceover_services.php") {
        $vo = $active;
        $side_vo = $side_active;
    } elseif ($_SERVER['REQUEST_URI'] == "/Q_Enterprices/contact.php") {
        $contact = $active;
        $side_contact = $side_active;
    }
    
    <div class="navbar">
        <div class="navbar_body">
            <a href="index.php">
                <div class="navbar_logo">
                    <img style="width: 100px;height:100px;" src="assets/logo_transperant_white.svg"
                        alt="Pause Spa Logo">
                </div>
            </a>
            <div class="navbar_menu">
                <a href="index.php">
                    <h3 <?php echo $home ?>>HOME</h3>
                </a>
                <a href="services.php">
                    <h3 <?php echo $radio ?>>SERVICES</h3>
                </a>
                <a href="products.php">
                    <h3 <?php echo $mc ?>>PRODUCTS</h3>
                </a>
                <a href="accommodation.php">
                    <h3 <?php echo $vo ?>>ACCOMMODATION</h3>
                </a>
                <a href="contact.php">
                    <h3 <?php echo $contact ?>>CONTACT</h3>
                </a>
            </div>
        </div>
    </div>

    EOT;
}

function __destruct(){

    echo <<<EOT
    <div class='footer'>
        <div class=''>
        </div>
    </div>
    EOT;
}