post->post_status; $awaiting_status = BOOKED_WC_PLUGIN_PREFIX . 'awaiting'; if ( !$appointment->order_id || $appointment->order_id == 'manual' ): ?> > is_paid): ?> order_id ) { if (current_user_can('manage_booked_options')) : echo ''; echo '' . $appointment->payment_status_text . ''; else : echo '' . $appointment->payment_status_text . ''; endif; } else { if (current_user_can('manage_booked_options')) : echo ''; endif; echo '' . __('Awaiting Payment', 'booked-woocommerce-payments') . ''; } ?> '; if (current_user_can('manage_booked_options') && $appointment->order_id != 'manual') : echo '  ' . __('Paid', 'booked-woocommerce-payments') . ''; else : echo '' . __('Paid', 'booked-woocommerce-payments') . ''; endif; echo ''; endif;