Event Management Unavailable
                The event management system requires The Events Calendar Community Events plugin to be active.
             ';
        }
        
        // Process the TEC shortcode
        return do_shortcode('[tribe_community_events]');
    }
    
    /**
     * Process shortcode for event editing
     */
    public function processEditEventShortcode(array $atts = []): string {
        // Ensure user is logged in and has permissions
        if (!is_user_logged_in()) {
            return '
                Event Editing Unavailable
                The event editing system requires The Events Calendar Community Events plugin to be active.
             ';
        }
        
        if ($event_id > 0) {
            // Check if user can edit this specific event
            if (!$this->canUserEditEvent($event_id)) {
                return '';
            
            // Display navigation menu if available
            if (class_exists('HVAC_Menu_System')) {
                echo '
';
                HVAC_Menu_System::instance()->render_trainer_menu();
                echo '
';
            }
            
            // Display breadcrumbs if available
            if (class_exists('HVAC_Breadcrumbs')) {
                echo '
';
                HVAC_Breadcrumbs::instance()->render();
                echo '
';
            }
            
            echo '
Edit Event
';
            echo '
';
            echo '
';
            echo do_shortcode('[tribe_community_events view="edit_event" id="' . $event_id . '"]');
            echo '
';
            echo '