attendees_table->prepare_items(); $event_id = isset( $_GET['event_id'] ) ? intval( $_GET['event_id'] ) : 0; $event = get_post( $event_id ); $tickets = TribeEventsTickets::get_event_tickets( $event_id ); ?>

post_title; ?>



post_title; ?>

name ) ?>: stock; $sold = ! empty ( $ticket->qty_sold ) ? $ticket->qty_sold : 0; $pending = ''; if ( $ticket->qty_pending > 0 ) { $pending = sprintf( _n( '(%d awaiting review)', '(%d awaiting review)', 'tribe-events-calendar', $ticket->qty_pending ), (int) $ticket->qty_pending ); } if ( empty( $stock ) && $stock !== 0 ) { echo sprintf( __( "Sold %d %s", 'tribe-events-calendar' ), esc_html( $sold ), $pending ); } else { echo sprintf( __( "Sold %d of %d %s", 'tribe-events-calendar' ), esc_html( $sold ), esc_html( $sold + $stock ), $pending ); } echo '
'; $total_sold += $sold; $total_pending += $ticket->qty_pending; $total_completed = $total_sold - $total_pending; endforeach; ?>
0 ) : ?>

attendees_table->display() ?>