query(" SELECT id, room_code, room_type, package_name, price, price_period, capacity, status FROM rooms ORDER BY room_code ASC "); $rooms = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { error_log( 'New booking room lookup: ' . $e->getMessage() ); http_response_code(500); exit( 'Unable to load rooms. Please contact the system administrator.' ); } /* --------------------------------------------------------- HTML ESCAPING --------------------------------------------------------- */ function e($value): string { return htmlspecialchars( (string)($value ?? ''), ENT_QUOTES, 'UTF-8' ); } /* --------------------------------------------------------- PREPARE ROOM PRICING DATA FOR JAVASCRIPT --------------------------------------------------------- */ $roomPricing = []; foreach ($rooms as $room) { $roomPricing[(string)$room['id']] = [ 'price' => (float)$room['price'], 'period' => strtolower( trim((string)$room['price_period']) ), 'room_code' => (string)$room['room_code'], 'status' => strtolower( trim((string)$room['status']) ) ]; } $roomPricingJson = json_encode( $roomPricing, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_THROW_ON_ERROR ); ?> Create Administrator Booking | 247 Hostel Apartment

Create Administrator Booking

247 Hostel Apartment — Administrator Booking Management

Guest and Reservation Information

No rooms were found in the database. Add or check your rooms before creating a booking.
Room pricing: Select a room and enter the check-in and check-out dates. By default, the system uses the room's saved daily or monthly rate. An administrator may instead enable a special rate for this booking only. A special rate does not change the room price, package price or public website.

Room availability will be checked again when the booking is submitted.

Booking Status: Pending. Payment Status: Pending.

Creating this booking does not mean that payment has been received. The administrator must verify actual receipt of the full booking amount before confirming the booking.

All new administrator-created bookings start as pending. Payment confirmation and booking confirmation are handled together from the Booking Details page.
Only rooms currently marked available can be selected.
This is private to administrator bookings. It does not change the room's saved price or any rate shown on the public website.

Booking Price Calculation

Selected room Not selected
Room rate GH₵0.00
Booking duration Not calculated
Total Booking Amount GH₵0.00
Select a room and both dates to calculate the booking amount.
All new bookings start as pending. Only an administrator can confirm them.
Payment is not recorded as received until the administrator verifies the actual money.
Cancel