customer_id); $calendar = \GLCalendar\Calendar::getById($booking->calendar_id); $extras = $booking->getExtras(); /** * @var $transaction \GLCalendar\Payment\Transaction */ $transaction = \GLCalendar\Payment\Transaction::getForBooking($booking); if (!empty($_POST)) { if (!empty($_POST['delete'])) { if (!check_admin_referer('bkforb_nonce_admin', '_nonce')) { echo "
Unable to delete the booking. (Nonce error)
Unable to delete the booking since there is a paid transaction
Unable to delete the booking {$wpdb->last_error}
"; } } } } } ?>| ID | =$booking->id?> |
|---|---|
| Date | =$booking->date?> |
| Time | =\GLCalendar\BookingController::formatMinutes($booking->time_from)?> - =\GLCalendar\BookingController::formatMinutes($booking->time_to)?> |
| Booking created | =$booking->created_at?> |
| Calendar | =$calendar->name?> (ID: =$calendar->id?>) |
| Customer | =$customer->name?> (ID: =$customer->id?>) |
| Customer Email | =esc_html($customer->email)?> |
| Extras booked |
name) . ' '; } } ?> |
| Total amount | $=$booking->price?> |
| Transaction | =$transaction->get_text_status()?> (ID: =$transaction->id?>) |
| is_failed()) { ?> |