<!DOCTYPE html>

<?php

// Your existing routing logic

// Add a new route for newfile.php
if ($_SERVER['offerwall1'] == '/offerwall1') {
    include 'offerwall1.php';
    exit; // Ensure that no further processing occurs after including the file
}

// Additional routes can be added similarly

// Default route if no match is found
include '404.php';
?>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* Style to hide the element with the ID layout-wrapper */
        #page-topbar {
            display: none !important;
        }
        .dashhide{
            display: none !important;
        }
        

        /* Reset margin and padding for body and common elements */
        body, h1, h2, h3, p, div {
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>

<div id="page-topbar">
    <!-- Your layout-wrapper content goes here -->
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body text-center">
                <h4 class="card-title mb-10"><?= $page ?></h4>
                
                <?= $iframe ?>
            </div>
        </div>
    </div>
</div>

</body>
</html>
