<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
                xmlns:h="http://xmlns.jcp.org/jsf/html" 
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets" 
                xmlns:p="http://primefaces.org/ui"
                xmlns:fr="http://primefaces.org/freya">

<div class="menu-wrapper">
    <div class="sidebar-logo">
        <a href="dashboard.xhtml">
            <p:graphicImage name="images/logo-freya-single.svg" library="freya-layout" />
        </a>
        <a href="#" class="sidebar-pin" title="Toggle Menu">
            <span class="pin"></span>
        </a>
    </div>
    <div class="layout-menu-container">
        <h:form id="menuform">
            <fr:menu widgetVar="FreyaMenuWidget">
                <!-- Dashboard Principal -->
                <p:menuitem id="m_dashboard" value="Tableau de Bord" icon="pi pi-home" outcome="/pages/secure/dashboard" />
                
                <!-- Super Administration -->
                <p:submenu id="m_super_admin" label="Super Administration" icon="pi pi-shield">
                    <p:menuitem id="m_super_dashboard" value="Dashboard Super-Admin" icon="pi pi-chart-bar" outcome="/pages/super-admin/dashboard" />
                    <p:menuitem id="m_gestion_entites" value="Gestion des Entités" icon="pi pi-sitemap" outcome="/pages/super-admin/entites/gestion" />
                    <p:menuitem id="m_config_systeme" value="Configuration Système" icon="pi pi-cog" outcome="/pages/super-admin/configuration/systeme" />
                </p:submenu>
                
                <!-- Administration Générale -->
                <p:submenu id="m_administration" label="Administration" icon="pi pi-cog">
                    <p:menuitem id="m_gestion_cotisations" value="Gestion Cotisations" icon="pi pi-dollar" outcome="/pages/admin/cotisations/gestion" />
                    <p:menuitem id="m_gestion_evenements" value="Gestion Événements" icon="pi pi-calendar" outcome="/pages/admin/evenements/gestion" />
                    <p:menuitem id="m_demandes_aide" value="Demandes d'Aide" icon="pi pi-heart" outcome="/pages/admin/demandes/gestion" />
                    <p:menuitem id="m_rapports_stats" value="Rapports et Statistiques" icon="pi pi-chart-bar" outcome="/pages/admin/rapports/statistiques" />
                    <p:menuitem id="m_gestion_documents" value="Gestion Documents" icon="pi pi-folder" outcome="/pages/admin/documents/gestion" />
                    <p:menuitem id="m_parametres" value="Paramètres Système" icon="pi pi-sliders-h" url="#" />
                    <p:menuitem id="m_utilisateurs" value="Gestion Utilisateurs" icon="pi pi-users" outcome="/pages/admin/utilisateurs/gestion" />
                    <p:menuitem id="m_roles" value="Rôles et Permissions" icon="pi pi-key" outcome="/pages/super-admin/roles/gestion" />
                    <p:menuitem id="m_audit" value="Journal d'Audit" icon="pi pi-file-o" outcome="/pages/admin/audit/journal" />
                </p:submenu>
                
                <!-- Gestion des Membres -->
                <p:submenu id="m_membres" label="Gestion des Membres" icon="pi pi-users">
                    <p:menuitem id="m_inscription" value="Nouvelle Inscription" icon="pi pi-user-plus" outcome="/pages/secure/membre/inscription" />
                    <p:menuitem id="m_liste_membres" value="Liste des Membres" icon="pi pi-list" outcome="/pages/secure/membre/liste" />
                    <p:menuitem id="m_recherche_membres" value="Recherche Avancée" icon="pi pi-search" outcome="/pages/secure/membre/recherche" />
                    <p:menuitem id="m_profil_membre" value="Mon Profil" icon="pi pi-user" outcome="/pages/secure/membre/profil" />
                    <p:menuitem id="m_import_membres" value="Import en Masse" icon="pi pi-upload" url="#" />
                    <p:menuitem id="m_export_membres" value="Export Membres" icon="pi pi-download" url="#" />
                </p:submenu>
                
                <!-- Gestion des Adhésions -->
                <p:submenu id="m_adhesions" label="Gestion des Adhésions" icon="pi pi-bookmark">
                    <p:menuitem id="m_demande_adhesion" value="Nouvelle Demande" icon="pi pi-plus-circle" outcome="/pages/secure/adhesion/demande" />
                    <p:menuitem id="m_validation_adhesion" value="Validation des Demandes" icon="pi pi-check-circle" outcome="/pages/secure/adhesion/validation" />
                    <p:menuitem id="m_liste_adhesions" value="Toutes les Adhésions" icon="pi pi-list" outcome="/pages/secure/adhesion/liste" />
                    <p:menuitem id="m_renouvellement" value="Renouvellements" icon="pi pi-refresh" outcome="/pages/secure/adhesion/renouvellement" />
                    <p:menuitem id="m_cartes_membres" value="Cartes de Membres" icon="pi pi-id-card" url="#" />
                    <p:menuitem id="m_historique_adhesions" value="Historique" icon="pi pi-history" url="#" />
                </p:submenu>
                
                <!-- Gestion Financière -->
                <p:submenu id="m_finances" label="Gestion Financière" icon="pi pi-dollar">
                    <p:menuitem id="m_cotisations" value="Cotisations" icon="pi pi-credit-card" outcome="/pages/secure/cotisation/paiement" />
                    <p:menuitem id="m_historique_cotisations" value="Historique Paiements" icon="pi pi-history" outcome="/pages/secure/cotisation/historique" />
                    <p:menuitem id="m_relances" value="Relances et Rappels" icon="pi pi-bell" outcome="/pages/secure/cotisation/relances" />
                    <p:menuitem id="m_rapports_cotisations" value="Rapports Cotisations" icon="pi pi-chart-bar" outcome="/pages/secure/cotisation/rapports" />
                    <p:menuitem id="m_budgets" value="Gestion des Budgets" icon="pi pi-chart-pie" url="#" />
                    <p:menuitem id="m_tresorerie" value="Trésorerie" icon="pi pi-wallet" url="#" />
                    <p:menuitem id="m_comptabilite" value="Comptabilité" icon="pi pi-calculator" url="#" />
                    <p:menuitem id="m_bilans" value="Bilans Financiers" icon="pi pi-chart-line" url="#" />
                </p:submenu>
                
                <!-- Aide Sociale -->
                <p:submenu id="m_aides" label="Aide Sociale" icon="pi pi-heart">
                    <p:menuitem id="m_demande_aide" value="Nouvelle Demande" icon="pi pi-plus" outcome="/pages/secure/aide/demande" />
                    <p:menuitem id="m_traitement_aide" value="Traitement des Demandes" icon="pi pi-cog" outcome="/pages/secure/aide/traitement" />
                    <p:menuitem id="m_evaluation_aide" value="Évaluation Sociale" icon="pi pi-search" url="#" />
                    <p:menuitem id="m_suivi_aide" value="Suivi des Bénéficiaires" icon="pi pi-eye" url="#" />
                    <p:menuitem id="m_historique_aides" value="Historique des Aides" icon="pi pi-clock" outcome="/pages/secure/aide/historique" />
                    <p:menuitem id="m_statistiques_aides" value="Statistiques Sociales" icon="pi pi-chart-line" outcome="/pages/secure/aide/statistiques" />
                    <p:menuitem id="m_fonds_solidarite" value="Fonds de Solidarité" icon="pi pi-heart-fill" url="#" />
                </p:submenu>
                
                <!-- Gestion des Événements -->
                <p:submenu id="m_evenements" label="Gestion des Événements" icon="pi pi-calendar">
                    <p:menuitem id="m_creation_evenement" value="Nouvel Événement" icon="pi pi-plus" outcome="/pages/secure/evenement/creation" />
                    <p:menuitem id="m_calendrier" value="Calendrier" icon="pi pi-calendar-plus" outcome="/pages/secure/evenement/calendrier" />
                    <p:menuitem id="m_planification" value="Planification" icon="pi pi-clock" url="#" />
                    <p:menuitem id="m_participation" value="Gestion des Participations" icon="pi pi-users" outcome="/pages/secure/evenement/participation" />
                    <p:menuitem id="m_gestion_generale_evenements" value="Gestion Générale" icon="pi pi-cog" outcome="/pages/secure/evenement/gestion" />
                    <p:menuitem id="m_logistique" value="Logistique" icon="pi pi-truck" url="#" />
                    <p:menuitem id="m_bilan_evenements" value="Bilan des Événements" icon="pi pi-chart-bar" url="#" />
                    <p:menuitem id="m_reservations" value="Réservations" icon="pi pi-ticket" url="#" />
                </p:submenu>
                
                <!-- Communication -->
                <p:submenu id="m_communication" label="Communication" icon="pi pi-envelope">
                    <p:menuitem id="m_messages" value="Centre de Messages" icon="pi pi-inbox" url="#" />
                    <p:menuitem id="m_notifications" value="Notifications" icon="pi pi-bell" url="#" />
                    <p:menuitem id="m_annonces" value="Annonces Officielles" icon="pi pi-megaphone" url="#" />
                    <p:menuitem id="m_newsletter" value="Newsletter" icon="pi pi-send" url="#" />
                    <p:menuitem id="m_sms" value="Envoi SMS" icon="pi pi-mobile" url="#" />
                    <p:menuitem id="m_emailing" value="Campagnes Email" icon="pi pi-at" url="#" />
                    <p:menuitem id="m_reseaux_sociaux" value="Réseaux Sociaux" icon="pi pi-share-alt" url="#" />
                </p:submenu>
                
                <!-- Gestion Documentaire -->
                <p:submenu id="m_documents" label="Gestion Documentaire" icon="pi pi-folder">
                    <p:menuitem id="m_bibliotheque" value="Bibliothèque" icon="pi pi-book" url="#" />
                    <p:menuitem id="m_mes_documents" value="Mes Documents" icon="pi pi-file" url="#" />
                    <p:menuitem id="m_modeles" value="Modèles et Templates" icon="pi pi-file-o" url="#" />
                    <p:menuitem id="m_archivage" value="Archivage" icon="pi pi-archive" url="#" />
                    <p:menuitem id="m_partage" value="Documents Partagés" icon="pi pi-share-alt" url="#" />
                    <p:menuitem id="m_signatures" value="Signatures Électroniques" icon="pi pi-verified" url="#" />
                    <p:menuitem id="m_workflow_doc" value="Workflow Documentaire" icon="pi pi-sitemap" url="#" />
                </p:submenu>
                
                <!-- Formation et Développement -->
                <p:submenu id="m_formation" label="Formation et Développement" icon="pi pi-graduation-cap">
                    <p:menuitem id="m_formations" value="Catalogue de Formations" icon="pi pi-book" url="#" />
                    <p:menuitem id="m_inscriptions_formation" value="Inscriptions" icon="pi pi-user-plus" url="#" />
                    <p:menuitem id="m_planning_formation" value="Planning des Formations" icon="pi pi-calendar" url="#" />
                    <p:menuitem id="m_certifications" value="Certifications" icon="pi pi-verified" url="#" />
                    <p:menuitem id="m_competences" value="Gestion des Compétences" icon="pi pi-star" url="#" />
                    <p:menuitem id="m_e_learning" value="E-Learning" icon="pi pi-desktop" url="#" />
                    <p:menuitem id="m_evaluations" value="Évaluations" icon="pi pi-check-square" url="#" />
                </p:submenu>
                
                <!-- Rapports et Analyses -->
                <p:submenu id="m_rapports" label="Rapports et Analyses" icon="pi pi-chart-bar">
                    <p:menuitem id="m_tableaux_bord" value="Tableaux de Bord" icon="pi pi-chart-line" url="#" />
                    <p:menuitem id="m_rapport_membres" value="Rapport Membres" icon="pi pi-users" outcome="/pages/secure/rapport/membres" />
                    <p:menuitem id="m_rapport_finances" value="Rapport Financier" icon="pi pi-dollar" outcome="/pages/secure/rapport/finances" />
                    <p:menuitem id="m_rapport_activites" value="Rapport d'Activités" icon="pi pi-chart-line" outcome="/pages/secure/rapport/activites" />
                    <p:menuitem id="m_indicateurs" value="Indicateurs de Performance" icon="pi pi-gauge" url="#" />
                    <p:menuitem id="m_analyses_predicitives" value="Analyses Prédictives" icon="pi pi-eye" url="#" />
                    <p:menuitem id="m_export" value="Exports Personnalisés" icon="pi pi-download" outcome="/pages/secure/rapport/export" />
                </p:submenu>
                
                <!-- Outils et Utilitaires -->
                <p:submenu id="m_outils" label="Outils et Utilitaires" icon="pi pi-wrench">
                    <p:menuitem id="m_calculatrices" value="Calculatrices" icon="pi pi-calculator" url="#" />
                    <p:menuitem id="m_generateurs" value="Générateurs" icon="pi pi-cog" url="#" />
                    <p:menuitem id="m_imports" value="Imports de Données" icon="pi pi-upload" url="#" />
                    <p:menuitem id="m_exports_masse" value="Exports en Masse" icon="pi pi-download" url="#" />
                    <p:menuitem id="m_sauvegardes" value="Sauvegardes" icon="pi pi-save" url="#" />
                    <p:menuitem id="m_synchronisation" value="Synchronisation" icon="pi pi-sync" url="#" />
                    <p:menuitem id="m_maintenance" value="Maintenance" icon="pi pi-wrench" url="#" />
                    <p:menuitem id="m_api_externe" value="APIs Externes" icon="pi pi-cloud" url="#" />
                </p:submenu>
                
                <!-- Mon Espace Personnel -->
                <p:submenu id="m_personnel" label="Mon Espace Personnel" icon="pi pi-user">
                    <p:menuitem id="m_mon_profil" value="Mon Profil" icon="pi pi-user-edit" outcome="/pages/secure/personnel/profil" />
                    <p:menuitem id="m_mes_activites" value="Mes Activités" icon="pi pi-history" outcome="/pages/secure/personnel/activites" />
                    <p:menuitem id="m_mes_preferences" value="Mes Préférences" icon="pi pi-cog" outcome="/pages/secure/personnel/preferences" />
                    <p:menuitem id="m_mes_notifications" value="Mes Notifications" icon="pi pi-bell" outcome="/pages/secure/personnel/notifications" />
                    <p:menuitem id="m_mon_agenda" value="Mon Agenda" icon="pi pi-calendar" outcome="/pages/secure/personnel/agenda" />
                    <p:menuitem id="m_mes_documents_perso" value="Mes Documents" icon="pi pi-folder" outcome="/pages/secure/personnel/documents" />
                    <p:menuitem id="m_favoris" value="Mes Favoris" icon="pi pi-star-fill" outcome="/pages/secure/personnel/favoris" />
                    <p:menuitem id="m_parametres_compte" value="Paramètres Compte" icon="pi pi-lock" outcome="/pages/secure/personnel/parametres" />
                </p:submenu>
                
                <!-- Aide et Support -->
                <p:submenu id="m_aide_documentation" label="Aide et Support" icon="pi pi-question-circle">
                    <p:menuitem id="m_guide_utilisateur" value="Guide Utilisateur" icon="pi pi-book" outcome="/pages/secure/aide/guide" />
                    <p:menuitem id="m_documentation" value="Documentation Complète" icon="pi pi-info-circle" outcome="/pages/secure/aide/documentation" />
                    <p:menuitem id="m_tutoriels" value="Tutoriels Vidéo" icon="pi pi-video" outcome="/pages/secure/aide/tutoriels" />
                    <p:menuitem id="m_faq" value="Questions Fréquentes" icon="pi pi-question" outcome="/pages/secure/aide/faq" />
                    <p:menuitem id="m_support" value="Contacter le Support" icon="pi pi-phone" outcome="/pages/secure/aide/support" />
                    <p:menuitem id="m_tickets" value="Mes Tickets" icon="pi pi-ticket" outcome="/pages/secure/aide/tickets" />
                    <p:menuitem id="m_feedback" value="Suggestions" icon="pi pi-comment" outcome="/pages/secure/aide/suggestions" />
                    <p:menuitem id="m_changelog" value="Nouveautés" icon="pi pi-sparkles" outcome="/pages/secure/aide/nouveautes" />
                    <p:menuitem id="m_apropos" value="À Propos d'UnionFlow" icon="pi pi-info" outcome="/pages/secure/aide/apropos" />
                </p:submenu>
            </fr:menu>
        </h:form>
    </div>
</div>

</ui:composition>