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)

"; } else { if (!empty($transaction) and !$transaction->is_failed()) { echo "

Unable to delete the booking since there is a paid transaction

"; } else { if ( \GLCalendar\DateTimeBook::deleteByIds( array( $booking->id ) ) ) { \GLCalendar\EmailNofitication::booking_deleted( $booking, $customer ); $new_loc = '?page=' . esc_js( $_REQUEST['page'] ); ?>

Unable to delete the booking {$wpdb->last_error}

"; } } } } } ?>

#id?>

ID id?>
Date date?>
Time time_from)?> - time_to)?>
Booking created created_at?>
Calendar name?> (ID: id?>)
Customer name?> (ID: id?>)
Customer Email email)?>
Extras booked name) . '
'; } } ?>
Total amount $price?>
Transaction get_text_status()?> (ID: id?>)
is_failed()) { ?>

" />