Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
/**
 * Integrates with the attendee list table to make each ticket's
 * post history available for viewing.
 */
class Tribe__Tickets__Admin__Ticket_History {
	public function __construct() {
		add_filter( 'event_tickets_attendees_table_row_actions', array( $this, 'add_history_link' ), 10, 2 );
		add_action( 'wp_ajax_get_ticket_history', array( $this, 'supply_history' ) );
	}

	/**
	 * Add view/hide history links to each attendee table row where history
	 * is available.
	 *
	 * @param array $row_actions
	 * @param array  $item
	 *
	 * @return string
	 */
	public function add_history_link( array $row_actions, array $item ) {
		if ( ! isset( $item[ 'attendee_id' ] ) ) {
			return $row_actions;
		}

		$history = Tribe__Post_History::load( $item[ 'attendee_id' ] );

		if ( ! $history->has_entries() ) {
			return $row_actions;
		}

		$ticket_id = absint( $item[ 'attendee_id' ] );
		$check = wp_create_nonce( 'view-ticket-history-' . $ticket_id );
		$view = esc_html_x( 'View history', 'attendee table', 'event-tickets' );
		$hide = esc_html_x( 'Hide history', 'attendee table', 'event-tickets' );

		$row_actions[] = "
			<span> 
				<a href='#' class='ticket-history' data-ticket-id='$ticket_id' data-check='$check'> $view </a>
				<a href='#' class='hide-ticket-history'> $hide </a>
			</span>
		";

		return $row_actions;
	}

	/**
	 * Responds to ajax requests to access the ticket history.
	 */
	public function su