admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ab_veh_take_availability_nonce' ), 'labels' => array( 'wide' => AB_Veh_Take_Settings::get( 'label_wide' ), 'limited' => AB_Veh_Take_Settings::get( 'label_limited' ), 'scarce' => AB_Veh_Take_Settings::get( 'label_scarce' ), 'unavailable' => AB_Veh_Take_Settings::get( 'label_unavailable' ), ), ); wp_localize_script( 'abvt-availability-admin', 'ABVT_AVAIL_DATA', $avail_data ); } } /* --------------------------------------------------------------- * Manage Availability page * ------------------------------------------------------------- */ public function render_availability_page() { if ( ! current_user_can( 'manage_options' ) ) { return; } ?>
' . esc_html__( 'Booking not found.', 'ab-veh-take' ) . '
'; return; } ?>| status ) ); ?> | |
| journey_type ) ); ?> | |
|
| |
| pickup_address ); ?> | |
| destination_address ); ?> | |
| booking_date ); ?> | |
| booking_time ); ?> | |
| num_passengers ? esc_html( $booking->num_passengers ) : esc_html__( '—', 'ab-veh-take' ); ?> | |
| vehicle_type ? esc_html( $booking->vehicle_type ) : esc_html__( '—', 'ab-veh-take' ); ?> | |
| full_name ); ?> | |
| email ); ?> | |
| phone ); ?> | |
| created_at ) ) ); ?> |