|
@php
$moduleIcons = [
'Users' => 'fa-users',
'Exams' => 'fa-graduation-cap',
'Marks' => 'fa-chart-line',
'Reports' => 'fa-file-pdf',
'Assignments' => 'fa-tasks',
'Attendance' => 'fa-clipboard-check',
'Leave' => 'fa-calendar-minus',
'Communication' => 'fa-comments',
'Fees' => 'fa-money-bill-wave',
'Timetable' => 'fa-calendar-alt',
'Audit' => 'fa-clipboard-list',
'Settings' => 'fa-cog',
'AI Insights' => 'fa-brain',
];
@endphp
{{ $module }}
|
@foreach($perms as $perm)
{{ $perm->name }}
@php
$descriptions = [
'manage-users' => 'Create, edit, deactivate user accounts',
'view-users' => 'View user profiles and lists',
'manage-exams' => 'Create and edit exams',
'enter-marks' => 'Enter and update student marks',
'view-marks' => 'View marks and results',
'generate-report-cards' => 'Generate PDF report cards',
'manage-assignments' => 'Create and manage assignments',
'submit-assignments' => 'Submit assignment responses',
'grade-assignments' => 'Grade submitted assignments',
'manage-attendance' => 'Mark and edit attendance',
'view-attendance' => 'View attendance records',
'request-leave' => 'Submit leave requests',
'approve-leave' => 'Approve or reject leave',
'manage-announcements' => 'Create and edit announcements',
'send-messages' => 'Send and receive messages',
'moderate-chat' => 'Moderate chat conversations',
'manage-fees' => 'Create invoices, manage fee structure',
'view-fees' => 'View fee records and invoices',
'make-payments' => 'Process fee payments',
'manage-timetable' => 'Create and edit timetable',
'view-timetable' => 'View class timetable',
'view-audit-logs' => 'View system audit trails',
'manage-settings' => 'Manage school settings',
'view-ai-insights' => 'View AI-generated insights',
];
@endphp
{{ $descriptions[$perm->name] ?? '' }}
|
@foreach($roles as $role)
|
@endforeach
@endforeach
@endforeach