mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
File systeme V3
This commit is contained in:
@@ -1,147 +1,184 @@
|
||||
@php
|
||||
$sidebar = [
|
||||
'Nouvelle' => [
|
||||
'route' => 'admin.news',
|
||||
'icon' => 'new_releases',
|
||||
'perm' => 'news_see',
|
||||
'child' => null
|
||||
],
|
||||
'Horaire' => [
|
||||
'route' => 'admin.schedule',
|
||||
'icon' => 'calendar_today',
|
||||
'perm' => 'schedule_see',
|
||||
'child' => null
|
||||
],
|
||||
'Instruction' => [
|
||||
'route' => null,
|
||||
'icon' => 'menu_book',
|
||||
'perm' => null,
|
||||
'child' => [
|
||||
'Guide et NQP' => [
|
||||
'route' => 'admin.instruction.guide',
|
||||
'icon' => 'fas fa-book',
|
||||
'perm' => 'instruction_guide_see',
|
||||
'child' => null
|
||||
],
|
||||
'BD des cours' => [
|
||||
'route' => 'admin.ocom',
|
||||
'icon' => 'fas fa-database',
|
||||
'perm' => 'instruction_db_ocom_see',
|
||||
'child' => null
|
||||
],
|
||||
'Liste des cours' => [
|
||||
'route' => 'admin.course',
|
||||
'icon' => 'fas fa-list',
|
||||
'perm' => 'course_see_all',
|
||||
'child' => null
|
||||
],
|
||||
//'Fichier' => [
|
||||
// 'route' => 'admin.instruction.files',
|
||||
// 'icon' => 'fas fa-folder',
|
||||
// 'perm' => null,
|
||||
// 'child' => null
|
||||
//],
|
||||
'Statistiques' => [
|
||||
'route' => 'admin.stats.instruction',
|
||||
'icon' => 'fas fa-chart-line',
|
||||
'perm' => 'stats_instruction_see',
|
||||
'child' => null
|
||||
],
|
||||
]
|
||||
],
|
||||
'Administration' => [
|
||||
'route' => null,
|
||||
'icon' => 'recent_actors',
|
||||
'perm' => null,
|
||||
'child' => [
|
||||
//'Articles' => [
|
||||
// 'route' => 'admin.article',
|
||||
// 'icon' => 'fas fa-newspaper',
|
||||
// 'perm' => 'article_see',
|
||||
// 'child' => null
|
||||
//],
|
||||
//'Images' => [
|
||||
// 'route' => 'admin.picture',
|
||||
// 'icon' => 'fas fa-images',
|
||||
// 'perm' => 'picture_see',
|
||||
// 'child' => null
|
||||
//],
|
||||
'Utilisateurs' => [
|
||||
'route' => 'admin.users',
|
||||
'icon' => 'fas fa-users',
|
||||
'perm' => 'user_see',
|
||||
'child' => null
|
||||
],
|
||||
//'Liste nominative' => [
|
||||
// 'route' => 'admin.users',
|
||||
// 'icon' => 'fas fa-address-book',
|
||||
// 'perm' => 'cadet_list_see',
|
||||
// 'child' => null
|
||||
//],
|
||||
'Logs' => [
|
||||
'route' => 'admin.stats.log',
|
||||
'icon' => 'fas fa-stream',
|
||||
'perm' => 'stats_see',
|
||||
'child' => null
|
||||
],
|
||||
]
|
||||
],
|
||||
//'Fichiers' => [
|
||||
// 'route' => null,
|
||||
// 'icon' => 'folder',
|
||||
// 'perm' => 'file_see',
|
||||
// 'child' => \App\GoogleDriveFile::getSidebarFile(),
|
||||
//],
|
||||
'Configuration' => [
|
||||
'route' => null,
|
||||
'icon' => 'menu_book',
|
||||
'perm' => 'config_see',
|
||||
'child' => [
|
||||
'Général' => [
|
||||
'route' => 'admin.config.general',
|
||||
'icon' => 'fas fa-cogs',
|
||||
'perm' => 'config_edit',
|
||||
'child' => null
|
||||
],
|
||||
'Instruction' => [
|
||||
'route' => 'admin.config.schedule',
|
||||
'icon' => 'fas fa-book-open',
|
||||
'perm' => 'config_edit_instruction',
|
||||
'child' => null
|
||||
],
|
||||
'Administration' => [
|
||||
'route' => 'admin.config.complementary-activity',
|
||||
'icon' => 'fas fa-file-alt',
|
||||
'perm' => 'config_edit_administration',
|
||||
'child' => null
|
||||
],
|
||||
'Grade' => [
|
||||
'route' => 'admin.config.rank',
|
||||
'icon' => 'fas fa-user-shield',
|
||||
'perm' => 'config_edit_rank',
|
||||
'child' => null
|
||||
],
|
||||
'Poste' => [
|
||||
'route' => 'admin.config.jobs',
|
||||
'icon' => 'fas fa-user-tag',
|
||||
'perm' => 'config_edit_job',
|
||||
'child' => null
|
||||
],
|
||||
//'Fichier' => [
|
||||
// 'route' => 'admin.config.files',
|
||||
// 'icon' => 'fas fa-folder',
|
||||
// 'perm' => 'config_edit_files',
|
||||
// 'child' => null
|
||||
//],
|
||||
'Apparence' => [
|
||||
'route' => 'admin.config.customisation',
|
||||
'icon' => 'fas fa-palette',
|
||||
'perm' => 'config_edit_customization',
|
||||
'child' => null
|
||||
$sidebar = [
|
||||
'Nouvelle' => [
|
||||
'route' => 'admin.news',
|
||||
'icon' => 'new_releases',
|
||||
'perm' => 'news_see',
|
||||
'child' => null
|
||||
],
|
||||
'Horaire' => [
|
||||
'route' => 'admin.schedule',
|
||||
'icon' => 'calendar_today',
|
||||
'perm' => 'schedule_see',
|
||||
'child' => null
|
||||
],
|
||||
'Instruction' => [
|
||||
'route' => null,
|
||||
'icon' => 'menu_book',
|
||||
'perm' => null,
|
||||
'child' => [
|
||||
'Guide et NQP' => [
|
||||
'route' => 'admin.instruction.guide',
|
||||
'icon' => 'fas fa-book',
|
||||
'perm' => 'instruction_guide_see',
|
||||
'child' => null
|
||||
],
|
||||
'BD des cours' => [
|
||||
'route' => 'admin.ocom',
|
||||
'icon' => 'fas fa-database',
|
||||
'perm' => 'instruction_db_ocom_see',
|
||||
'child' => null
|
||||
],
|
||||
'Liste des cours' => [
|
||||
'route' => 'admin.course',
|
||||
'icon' => 'fas fa-list',
|
||||
'perm' => 'course_see_all',
|
||||
'child' => null
|
||||
],
|
||||
//'Fichier' => [
|
||||
// 'route' => 'admin.instruction.files',
|
||||
// 'icon' => 'fas fa-folder',
|
||||
// 'perm' => null,
|
||||
// 'child' => null
|
||||
//],
|
||||
'Statistiques' => [
|
||||
'route' => 'admin.stats.instruction',
|
||||
'icon' => 'fas fa-chart-line',
|
||||
'perm' => 'stats_instruction_see',
|
||||
'child' => null
|
||||
],
|
||||
]
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'Administration' => [
|
||||
'route' => null,
|
||||
'icon' => 'recent_actors',
|
||||
'perm' => null,
|
||||
'child' => [
|
||||
//'Articles' => [
|
||||
// 'route' => 'admin.article',
|
||||
// 'icon' => 'fas fa-newspaper',
|
||||
// 'perm' => 'article_see',
|
||||
// 'child' => null
|
||||
//],
|
||||
//'Images' => [
|
||||
// 'route' => 'admin.picture',
|
||||
// 'icon' => 'fas fa-images',
|
||||
// 'perm' => 'picture_see',
|
||||
// 'child' => null
|
||||
//],
|
||||
'Utilisateurs' => [
|
||||
'route' => 'admin.users',
|
||||
'icon' => 'fas fa-users',
|
||||
'perm' => 'user_see',
|
||||
'child' => null
|
||||
],
|
||||
'Liste nominative' => [
|
||||
'route' => 'admin.admin.list',
|
||||
'icon' => 'fas fa-address-book',
|
||||
'perm' => 'cadet_list_see',
|
||||
'child' => null
|
||||
],
|
||||
'Logs' => [
|
||||
'route' => 'admin.stats.log',
|
||||
'icon' => 'fas fa-stream',
|
||||
'perm' => 'stats_see',
|
||||
'child' => null
|
||||
],
|
||||
]
|
||||
],
|
||||
'Fichiers' => [
|
||||
'route' => null,
|
||||
'icon' => 'folder',
|
||||
'perm' => null,
|
||||
'child' => [
|
||||
'Publique' => [
|
||||
'route' => 'admin.files.publique',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => null,
|
||||
'child' => null
|
||||
],
|
||||
'Cadets' => [
|
||||
'route' => 'admin.files.cadet',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => 'files_cadets_see',
|
||||
'child' => null
|
||||
],
|
||||
'Staff' => [
|
||||
'route' => 'admin.files.staff',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => 'files_staff_see',
|
||||
'child' => null
|
||||
],
|
||||
'Instruction' => [
|
||||
'route' => 'admin.instruction.files',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => 'files_instruction_see',
|
||||
'child' => null
|
||||
],
|
||||
'ETAMAS' => [
|
||||
'route' => 'admin.files.etamas',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => 'files_etamas_see',
|
||||
'child' => null
|
||||
],
|
||||
'Officiers' => [
|
||||
'route' => 'admin.files.officier',
|
||||
'icon' => 'fas fa-folder-open',
|
||||
'perm' => 'files_officier_see',
|
||||
'child' => null
|
||||
]
|
||||
],
|
||||
],
|
||||
'Configuration' => [
|
||||
'route' => null,
|
||||
'icon' => 'menu_book',
|
||||
'perm' => 'config_see',
|
||||
'child' => [
|
||||
'Général' => [
|
||||
'route' => 'admin.config.general',
|
||||
'icon' => 'fas fa-cogs',
|
||||
'perm' => 'config_edit',
|
||||
'child' => null
|
||||
],
|
||||
'Instruction' => [
|
||||
'route' => 'admin.config.schedule',
|
||||
'icon' => 'fas fa-book-open',
|
||||
'perm' => 'config_edit_instruction',
|
||||
'child' => null
|
||||
],
|
||||
'Administration' => [
|
||||
'route' => 'admin.config.complementary-activity',
|
||||
'icon' => 'fas fa-file-alt',
|
||||
'perm' => 'config_edit_administration',
|
||||
'child' => null
|
||||
],
|
||||
'Grade' => [
|
||||
'route' => 'admin.config.rank',
|
||||
'icon' => 'fas fa-user-shield',
|
||||
'perm' => 'config_edit_rank',
|
||||
'child' => null
|
||||
],
|
||||
'Poste' => [
|
||||
'route' => 'admin.config.jobs',
|
||||
'icon' => 'fas fa-user-tag',
|
||||
'perm' => 'config_edit_job',
|
||||
'child' => null
|
||||
],
|
||||
'Fichier' => [
|
||||
'route' => 'admin.config.files',
|
||||
'icon' => 'fas fa-folder',
|
||||
'perm' => 'config_edit_files',
|
||||
'child' => null
|
||||
],
|
||||
'Apparence' => [
|
||||
'route' => 'admin.config.customisation',
|
||||
'icon' => 'fas fa-palette',
|
||||
'perm' => 'config_edit_customization',
|
||||
'child' => null
|
||||
]
|
||||
]
|
||||
],
|
||||
]
|
||||
@endphp
|
||||
<div class="sidebar" data-color="white" data-background-color="black" data-image="/images/sidebar.png">
|
||||
<div class="logo">
|
||||
|
||||
Reference in New Issue
Block a user