aviation-login

return ob_get_clean(); } function aviation_sms_dashboard_shortcode($atts) { // Safety check: ensure classes are loaded if (!class_exists(‘AviationEnterprise\Core\Session’)) { return ‘

System initializing. Please refresh the page.

‘; } // Check login try { $session = AviationEnterprise\Core\Session::getInstance(); if (!$session || !$session->isLoggedIn()) { return ‘

Please login to access the dashboard.

‘; } } catch (Exception $e) { return ‘

Session error. Please try logging in again.

‘; } // Get REAL company data from the session system $data = aviation_get_template_data(); if (empty($data[‘company’])) { return ‘
Could not load company data
‘; } // Get user/manager status $user_id = get_current_user_id(); $is_manager = false; if ($user_id) { $roles = new AviationEnterprise\Modules\Auth\Roles(); // Or check user role from your session: if (isset($_SESSION[‘aviation_user_role’])) { $is_manager = ($_SESSION[‘aviation_user_role’] === ‘manager’); } else { $is_manager = false; } } ob_start(); ?>
— Documents generated here are for your company only. Generating documents for other entities violates FlyWise SMS Terms of Service.
📝

SMS Commitment Letter

Formal commitment to safety from leadership

⚖️

Safety Policy Statement

Company safety policy and objectives

🚨

Emergency Response Plan

Procedures for responding to aviation emergencies

📜

Declaration of Compliance

Formal declaration certifying SMS compliance with 14 CFR Part 5

Debug Info