<?php
/**
 * Attendees modal - Attendee information > RSVP "Going".
 *
 * @since 5.10.0
 *
 * @var Tribe_Template $this           Current template object.
 * @var \WP_Post       $attendee       The attendee object.
 * @var int            $attendee_id    The attendee ID.
 * @var string         $attendee_name  The attendee name.
 * @var string         $attendee_email The attendee email.
 * @var int            $post_id        The ID of the associated post.
 * @var int            $ticket_id      The ID of the associated ticket.
 * @var bool           $qr_enabled     True if QR codes are enabled for the site.
 */

if ( ! empty( $attendee['provider_slug'] ) && 'rsvp' !== $attendee['provider_slug'] ) {
	return;
}

$going = ! empty( $attendee['order_status'] ) && 'yes' === $attendee['order_status'] ? __( 'Yes', 'event-tickets' ) : __( 'No', 'event-tickets' );

?>
<div class="tribe-common-g-col tec-tickets__admin-attendees-modal-attendee-info-col">
	<div class="tribe-common-b2--bold"><?php esc_html_e( 'Going', 'event-tickets' ); ?></div>
	<div class="tec-tickets__admin-attendees-modal-attendee-info-value"><?php echo esc_html( $going ); ?></div>
</div>
