Error: Event Summary data handler not found.

"; return; } } // Initialize the event summary data handler $summary_data_handler = new HVAC_Event_Summary_Data( $event_id ); // Check if the event is valid if ( ! $summary_data_handler->is_valid_event() ) { // Redirect to dashboard if the event doesn't exist or user doesn't have permission wp_safe_redirect( home_url( '/hvac-dashboard/' ) ); exit; } // Fetch all the required event data $event_details = $summary_data_handler->get_event_details(); $venue_details = $summary_data_handler->get_event_venue_details(); $organizer_details = $summary_data_handler->get_event_organizer_details(); $transactions = $summary_data_handler->get_event_transactions(); // Calculate ticket sales summary data $total_tickets = 0; $total_revenue = 0; $ticket_types = array(); // Process transactions data if ( ! empty( $transactions ) ) { foreach ( $transactions as $txn ) { $total_tickets++; if ( isset( $txn['price'] ) ) { $total_revenue += floatval( $txn['price'] ); } // Count ticket types $ticket_type = $txn['ticket_type_name'] ?? 'Unknown'; if ( isset( $ticket_types[$ticket_type] ) ) { $ticket_types[$ticket_type]['count']++; if ( isset( $txn['price'] ) ) { $ticket_types[$ticket_type]['revenue'] += floatval( $txn['price'] ); } } else { $ticket_types[$ticket_type] = array( 'count' => 1, 'revenue' => isset( $txn['price'] ) ? floatval( $txn['price'] ) : 0, ); } } } // Start the template get_header(); ?>

- Summary

Dashboard Edit Event'; } // View public event page echo 'View Public Page'; // Email attendees link (future feature) if ( current_user_can( 'edit_post', $event_id ) ) { // TODO: Link to actual Email Attendees page when implemented (Phase 2) $email_url = '#'; // Placeholder for now echo 'Email Attendees'; } ?>

Event Overview

Date & Time:
Status:
Cost:
Venue:
Organizer:

Event Statistics

Total Tickets

Total Revenue

$

$data ) : ?>

$

Ticket Sales & Attendees

Attendee Email Ticket Type Price Order ID Checked In
$

No ticket sales or attendees found for this event.

Event Description