<!DOCTYPE html>
<html lang="zxx">
    <?php require __DIR__ . '/includes/head.php'; ?>

    <body class="bg-body-bg"><?php require __DIR__ . '/includes/loading.php'; ?><?php require __DIR__ . '/includes/sidebar.php'; ?>


        <!-- Start Main Content Area -->
        <div class="container-fluid">
            <div class="main-content d-flex flex-column">
                <?php require __DIR__ . '/includes/topbar.php'; ?>


                <div class="main-content-container overflow-hidden">
                    <div class="d-flex justify-content-between align-items-center flex-wrap gap-2 mb-4 mt-1">
                        <h3 class="mb-0">Book Appointments</h3>

                        <nav aria-label="breadcrumb">
                            <ol class="breadcrumb align-items-center mb-0 lh-1">
                                <li class="breadcrumb-item">
                                    <a href="index.html" class="d-flex align-items-center text-decoration-none">
                                        <i class="ri-home-8-line fs-15 text-primary me-1"></i>
                                        <span class="text-body fs-14 hover">Dashboard</span>
                                    </a>
                                </li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    <span>Hospital</span>
                                </li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    <span class="text-secondary">Book Appointments</span>
                                </li>
                            </ol>
                        </nav>
                    </div>
                    
                    <div class="row">
                        <div class="col-xxl-4">
                            <div class="card bg-white border border-white rounded-10 mb-4 p-20">
                                <h3 class="mb-20">Select Doctor</h3>
                                <div class="form-floating">
                                    <select class="form-select form-control" id="floatingSelect4" aria-label="Floating label select example">
                                        <option selected>Dr. David Watson</option>
                                        <option value="1">Dr. Roberto Cruz</option>
                                        <option value="2">Dr. Juli Johnson</option>
                                        <option value="3">Dr. Catalina Engles</option>
                                        <option value="4">Dr. Louis Nagle</option>
                                        <option value="5">Dr. Shawn Kennedy</option>
                                    </select>
                                    <label for="floatingSelect4">Select</label>
                                </div>
                            </div>

                            <div class="card bg-white border border-white rounded-10 p-20 mb-4">
                                <div class="calendar-for-doctor border-border-color-50">
                                    <div class="d-flex flex-wrap gap-2 justify-content-between align-items-center mb-20">
                                        <h3>Select Date</h3>
                                        <div>
                                            <div class="calendar-header">
                                                <button id="prevMonth">Prev</button>
                                                <select id="monthSelect"></select>
                                                <select id="yearSelect"></select>
                                                <button id="nextMonth">Next</button>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <table class="calendar-table">
                                        <thead>
                                            <tr>
                                                <th>SU</th>
                                                <th>MO</th>
                                                <th>TU</th>
                                                <th>WE</th>
                                                <th>TH</th>
                                                <th>FR</th>
                                                <th>SA</th>
                                            </tr>
                                        </thead>
                                        <tbody id="calendarBody">
                                            <!-- Calendar days will be dynamically generated here -->
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="col-xxl-8">
                            <div class="card bg-white p-20 rounded-10 border border-white mb-4">
                                <h3 class="mb-20">Patient Information</h3>
                                <form>
                                    <div class="row">
                                        <div class="col-lg-12">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Patient Name Name</label>
                                                <div class="form-floating">
                                                    <input type="text" class="form-control" id="floatingInput1" placeholder="Enter doctor name">
                                                    <label for="floatingInput1">Enter doctor name</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Email</label>
                                                <div class="form-floating">
                                                    <input type="email" class="form-control" id="floatingInput2" placeholder="Add email address">
                                                    <label for="floatingInput2">Add email address</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Phone No</label>
                                                <div class="form-floating">
                                                    <input type="number" class="form-control" id="floatingInput3" placeholder="Add phone no">
                                                    <label for="floatingInput3">Add phone no</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-12">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Address</label>
                                                <div class="form-floating">
                                                    <input type="text" class="form-control" id="floatingInput4" placeholder="Add address">
                                                    <label for="floatingInput4">Add address</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-12">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Department</label>
                                                <div class="form-floating">
                                                    <input type="text" class="form-control" id="floatingInput5" placeholder="Enter department">
                                                    <label for="floatingInput5">Enter department</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Age</label>
                                                <div class="form-floating">
                                                    <input type="number" class="form-control" id="floatingInput9" placeholder="Add age">
                                                    <label for="floatingInput9">Add age</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Sex</label>
                                                <div class="form-floating">
                                                    <select class="form-select form-control" id="floatingSelect6" aria-label="Floating label select example">
                                                        <option selected>Select Gender</option>
                                                        <option value="1">Mail</option>
                                                        <option value="2">Femail</option>
                                                        <option value="3">Others</option>
                                                    </select>
                                                    <label for="floatingSelect6">Select</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-12">
                                            <div class="mb-20">
                                                <label class="label fs-16 mb-2">Add Physical Problem</label>
                                                <div class="form-floating">
                                                    <textarea class="form-control" placeholder="Add problems in details" id="floatingTextarea9" style="height: 152px"></textarea>
                                                    <label for="floatingTextarea9">Add problems in details</label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-12">
                                            <div class="d-flex gap-2 flex-wrap justify-content-end">
                                                <button type="button" class="btn btn-primary fw-normal text-white">Reserve The Appointment</button>
                                                <button type="button" class="btn btn-danger fw-normal text-white" data-bs-dismiss="modal">Cancel</button>
                                            </div>
                                        </div>
                                    </div>
                                </form> 
                            </div>
                        </div>
                    </div>
                </div>

                <div class="flex-grow-1"></div>

                <?php require __DIR__ . '/includes/footer.php'; ?>

            </div>
        </div> 
        <!-- Start Main Content Area -->

        <!-- Start Theme Setting Area -->
        <button class="btn btn-primary theme-settings-btn p-0 position-fixed z-2 text-center rounded-circle" style="bottom: 24px; right: 24px; width: 56px; height: 56px; line-height: 54px;" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasScrolling" aria-controls="offcanvasScrolling">
            <i class="text-white ri-settings-3-fill fs-28" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Click On Theme Settings"></i>
        </button>

        <!-- Start Theme Setting Area -->
        <div class="offcanvas offcanvas-end bg-white border-0" data-bs-scroll="true" data-bs-backdrop="true" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel" style="box-shadow: 0 4px 20px #2f8fe812 !important; max-width: 300px;">
            <div class="offcanvas-header bg-light p-20">
                <h5 class="offcanvas-title fs-18 fw-medium" id="offcanvasScrollingLabel">Configuration Panel</h5>
                <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
            </div>
            <div class="offcanvas-body p-0 overflow-hidden">
                <div class="last-child-none" style="max-height: 858px;" data-simplebar>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">RTL Mode</h4>
                        <div class="rtl-btn">
                            <label id="switch">
                                <input type="checkbox" onchange="toggleTheme()" class="toggle-switch rtl-switch" id="slider">
                            </label>
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Only Sidebar Dark</h4>
                        <div class="sidebar-light-dark" id="sidebar-light-dark">
                            <input type="checkbox" class="toggle-switch sidebar-dark-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Only Header Dark</h4>
                        <div class="header-light-dark" id="header-light-dark">
                            <input type="checkbox" class="toggle-switch header-dark-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Right Sidebar</h4>
                        <div class="right-sidebar" id="right-sidebar">
                            <input type="checkbox" class="toggle-switch right-sidebar-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Hide Sidebar</h4>
                        <div class="icon-sidebar" id="icon-sidebar">
                            <input type="checkbox" class="toggle-switch icon-sidebar-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Bordered Card</h4>
                        <div class="card-border" id="card-border">
                            <input type="checkbox" class="toggle-switch border-switch">
                        </div>
                    </div>
                    <div class="p-20 border-bottom child">
                        <h4 class="fs-15 fw-medium mb-12">Card Border Radius</h4>
                        <div class="card-radius-square" id="card-radius-square">
                            <input type="checkbox" class="toggle-switch border-radius-switch">
                        </div>
                    </div>
                    
                    <div class="p-20 border-bottom child">
                        <a href="#" class="btn btn-primary text-white">
                            Buy Fila
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!-- End Theme Setting Area -->
     
        <!-- Link Of JS File -->
        <script src="assets/js/bootstrap.bundle.min.js"></script>
        <script src="assets/js/sidebar-menu.js"></script>
        <script src="assets/js/quill.min.js"></script>
        <script src="assets/js/data-table.js"></script>
        <script src="assets/js/prism.js"></script>
        <script src="assets/js/clipboard.min.js"></script>
        <script src="assets/js/simplebar.min.js"></script>
        <script src="assets/js/apexcharts.min.js"></script>
        <script src="assets/js/echarts.min.js"></script>
        <script src="assets/js/swiper-bundle.min.js"></script>
        <script src="assets/js/fullcalendar.main.js"></script>
        <script src="assets/js/jsvectormap.min.js"></script>
        <script src="assets/js/world-merc.js"></script>
        <script src="assets/js/custom/apexcharts.js"></script>
        <script src="assets/js/custom/echarts.js"></script>
        <script src="assets/js/custom/maps.js"></script>
        <script src="assets/js/custom/custom.js"></script>
    </body>
</html>