' . esc_html__($localized_date, 'simply-schedule-appointments') . ' ' . esc_html__('at', 'simply-schedule-appointments') . ' ' . esc_html__($localized_time, 'simply-schedule-appointments') . '
'; $upcoming_appointment_type = new SSA_Appointment_Type_Object( $upcoming_appointment['appointment_type_id'] ); $upcoming_appointment_title = $upcoming_appointment_type->get_title(); if ($staff_details && $show_appointment_type && !$hide_team_member && $show_staff_name) { echo '' . esc_html__($upcoming_appointment_title, 'simply-schedule-appointments') . ' ' . esc_html__('with', 'simply-schedule-appointments') . ' '; $staff_names = array_map('esc_html', array_column($staff_details, 'name')); echo '' . implode(', ', $staff_names) . ''; echo '
'; } elseif ($staff_details && !$hide_team_member && $show_staff_name) { echo '' . esc_html__('With', 'simply-schedule-appointments') . ' '; $staff_names = array_map('esc_html', array_column($staff_details, 'name')); echo '' . implode(', ', $staff_names) . ''; echo '
'; } elseif ($show_appointment_type) { echo '' . esc_html__($upcoming_appointment_title, 'simply-schedule-appointments') . '
'; } elseif ( filter_var( $atts['appointment_type_displayed'], FILTER_VALIDATE_BOOLEAN ) ) { echo '' . esc_html__($upcoming_appointment_title, 'simply-schedule-appointments') . '
'; } ?>