Booking
Date
Order ID
Status
Action
data; while($data = mysqli_fetch_assoc($result)){ $date = date("F j, Y", strtotime($data['datentime'])); $checkin = date("M-d-Y", strtotime($data['check_in'])); $checkout = date("M-d-Y", strtotime($data['check_out'])); $status_bg = ""; $btn = ""; if($data['booking_status'] == 'pending' && $data['arrival'] == 0){ $status_bg = "bg-warning"; $status = 'Pending'; $btn = "
Cancel
"; } else if($data['booking_status'] == 'cancel' && $data['arrival'] == 0){ $status_bg = "bg-danger"; $status = 'Cancelled'; } else if($data['booking_status'] == 'pending' && $data['arrival'] ==1){ $status_bg = "bg-success"; $status = 'Booked'; $btn = "
"; if($data['review'] == 0){ $btn .= "
Review
"; } } echo <<< data
$date
$data[order_id]
$status
$btn
data; } ?>
Review
Room
Excellent
Very Good
Good
Fair
Poor
Cleanliness
Excellent
Very Good
Good
Fair
Poor
Staff Friendliness
Excellent
Very Good
Good
Fair
Poor
Service
Excellent
Very Good
Good
Fair
Poor
Comment
Submit