<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Title -->
    <title>Admin || <?= $meta_title ?></title>

    <!-- Meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="author" content="mws">
    <meta name="robots" content="index, nofollow">
    <meta name="keywords" content="<?= $meta_keyword ?>">
    <meta name="description" content="<?= $meta_description ?>">
    <!-- MOBILE SPECIFIC -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Favicon icon -->
    <!-- Vectormap -->
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/jqvmap/css/jqvmap.min.css" rel="stylesheet">
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/bootstrap-datepicker-master/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/dropzone/dist/dropzone.css" rel="stylesheet">
    <!-- Datatable -->
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/datatables/css/jquery.dataTables.min.css" rel="stylesheet">
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/datatables/responsive/responsive.css" rel="stylesheet">
    <!-- Custom Stylesheet -->
    <link href="<?= SITE_URL ?>public/admin/assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet">
    <link href="<?= SITE_URL ?>public/admin/assets/css/style.css" rel="stylesheet">
    <script src="<?= SITE_URL ?>public/admin/assets/vendor/global/global.min.js"></script>
    <script src="<?= SITE_URL ?>public/admin/assets/vendor/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
</head>

<body>
    <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>
    <div id="main-wrapper">
        <div class="nav-header">
            <a href="<?= ADMIN_URL ?>" class="brand-logo">
                <span class="text-dark">Admin Panel</span>
            </a>
            <div class="nav-control">
                <div class="hamburger">
                    <span class="line"></span>
                    <span class="line"></span>
                    <span class="line"></span>
                </div>
            </div>
        </div>
        <div class="header">
            <div class="header-content">
                <nav class="navbar navbar-expand">
                    <div class="collapse navbar-collapse justify-content-between">
                        <div class="header-left">
                            <div class="float-right">
                                <a href="<?= SITE_URL ?>">View Website</a>
                            </div>
                        </div>
                        <ul class="navbar-nav header-right">
                            <?php if (isset($_SESSION['sName'])) : ?>
                                <li class="nav-item dropdown header-profile">
                                    <a class="nav-link" href="javascript:void(0);" role="button" data-bs-toggle="dropdown">
                                        <div class="header-info">
                                            <span class="text-black"><?php echo $_SESSION['sName']; ?></span>
                                        </div>
                                        <img src="<?= SITE_URL ?>public/admin/assets/images/avatar/1.png" width="20" alt="/">
                                    </a>
                                    <div class="dropdown-menu dropdown-menu-end">
                                        <a href="<?= ADMIN_URL . 'account' ?>" class="dropdown-item ai-icon">
                                            <svg id="icon-user1" xmlns="http://www.w3.org/2000/svg" class="text-primary" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                                <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                                <circle cx="12" cy="7" r="4"></circle>
                                            </svg>
                                            <span class="ms-2">Update Profile </span>
                                        </a>
                                        <a href="<?= ADMIN_URL . 'account/change-password' ?>" class="dropdown-item ai-icon">
                                            <svg id="icon-inbox" xmlns="http://www.w3.org/2000/svg" class="text-success" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                                <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                                <polyline points="22,6 12,13 2,6"></polyline>
                                            </svg>
                                            <span class="ms-2">Change Password </span>
                                        </a>
                                        <a href="<?= ADMIN_URL . 'logout' ?>" class="dropdown-item ai-icon">
                                            <svg id="icon-logout" xmlns="http://www.w3.org/2000/svg" class="text-danger" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                                <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
                                                <polyline points="16 17 21 12 16 7"></polyline>
                                                <line x1="21" y1="12" x2="9" y2="12"></line>
                                            </svg>
                                            <span class="ms-2">Logout </span>
                                        </a>
                                    </div>
                                </li>
                            <?php endif ?>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
        <div class="deznav">
            <div class="deznav-scroll">
                <ul class="metismenu" id="menu">
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL ?>">
                            <span class="nav-text">Dashboard</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'account/settings' ?>">
                            <span class="nav-text">Settings</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL ?>property">
                            <span class="nav-text">Property Data</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/enquiries' ?>">
                            <span class="nav-text">Property Enquiry List</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/amenities' ?>">
                            <span class="nav-text">Property Amenities</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/reviews' ?>">
                            <span class="nav-text">Property Reviews</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/gallery' ?>">
                            <span class="nav-text">Property Gallery</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/rates' ?>">
                            <span class="nav-text">Property Rates</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/calender' ?>">
                            <span class="nav-text">Property Calender</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/attractions' ?>">
                            <span class="nav-text">Property Attractions</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'property/types' ?>">
                            <span class="nav-text">Property Types</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'slider' ?>">
                            <span class="nav-text">Property Slider</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'about-us' ?>">
                            <span class="nav-text">About</span>
                        </a>
                    </li>
                    <li>
                        <a class="has-arrow ai-icon" href="<?= ADMIN_URL . 'enquiries' ?>">
                            <span class="nav-text">Contact Enquiry List</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>


        <div class="content-body">
            <div class="container-fluid">
                <?php echo display_alert(); ?>