<?php
session_start();
include 'layouts/dbconn.php';
include 'layouts/session.php';

if (!isset($_SESSION['user_id']) || $_SESSION['role_code'] !== 'PATIENT') {
    header('Location: login.php');
    exit();
}
?>
<?php include 'layouts/main.php'; ?>

<head>
    <?php includeFileWithVariables('layouts/title-meta.php', array('title' => 'Pre-Appointment Instructions')); ?>
    <?php include 'layouts/head-css.php'; ?>
</head>

<body>
    <div id="layout-wrapper">
        <?php include 'layouts/menu.php'; ?>
        <div class="main-content">
            <div class="page-content">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-12">
                            <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                <h4 class="mb-sm-0">Pre-Appointment Instructions</h4>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card">
                                <div class="card-body">
                                    <div class="accordion" id="accordionInfo">
                                        <div class="accordion-item">
                                            <h2 class="accordion-header" id="headingOne">
                                                <button class="accordion-button" type="button" data-bs-toggle="collapse"
                                                    data-bs-target="#collapseOne">
                                                    Hearing Test Preparation
                                                </button>
                                            </h2>
                                            <div id="collapseOne" class="accordion-collapse collapse show"
                                                data-bs-parent="#accordionInfo">
                                                <div class="accordion-body">
                                                    <ul>
                                                        <li>Avoid exposure to loud noises for at least 16 hours prior to
                                                            the test.</li>
                                                        <li>Clean your ears gently if needed, but do not insert objects
                                                            deep into the ear canal.</li>
                                                        <li>Bring a list of any medications you are currently taking.
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="accordion-item">
                                            <h2 class="accordion-header" id="headingTwo">
                                                <button class="accordion-button collapsed" type="button"
                                                    data-bs-toggle="collapse" data-bs-target="#collapseTwo">
                                                    General Consultation Checklist
                                                </button>
                                            </h2>
                                            <div id="collapseTwo" class="accordion-collapse collapse"
                                                data-bs-parent="#accordionInfo">
                                                <div class="accordion-body">
                                                    <ul>
                                                        <li>Bring your ID card and Insurance card.</li>
                                                        <li>Arrive 15 minutes early to complete any necessary paperwork.
                                                        </li>
                                                        <li>Write down your symptoms and questions beforehand.</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="accordion-item">
                                            <h2 class="accordion-header" id="headingThree">
                                                <button class="accordion-button collapsed" type="button"
                                                    data-bs-toggle="collapse" data-bs-target="#collapseThree">
                                                    Surgery Instructions
                                                </button>
                                            </h2>
                                            <div id="collapseThree" class="accordion-collapse collapse"
                                                data-bs-parent="#accordionInfo">
                                                <div class="accordion-body">
                                                    <p class="text-danger">Important: Do not eat or drink anything after
                                                        midnight the night before surgery.</p>
                                                    <ul>
                                                        <li>Arrange for someone to drive you home after the procedure.
                                                        </li>
                                                        <li>Leave valuables at home.</li>
                                                        <li>Follow specific medication instructions provided by your
                                                            doctor.</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php include 'layouts/footer.php'; ?>
        </div>
    </div>
    <?php include 'layouts/vendor-scripts.php'; ?>
</body>

</html>