
 <!-- Side-Nav-->
 
        <aside class='main-sidebar hidden-print'>
            <section class='sidebar'>


				<ul class='sidebar-menu'>
					<?= showIfPermitted('dashboard', "<li><a href='dashboard'><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li>"); ?>
					<?= showIfPermitted('school_account_detail', "<li><a href='school_account_detail'><i class='fa fa-bank'></i>View Bank Details</a></li>"); ?>
                    <?= showIfPermitted('view_my_payment', "<li><a href='view_my_payment'><i class='fa fa-history'></i>My Payment History</a></li>"); ?>
					<?= showIfPermitted('staff_profile', "<li><a href='staff_profile'><i class='fa fa-user'></i><span>Profile</span></a></li>"); ?>
					<?= showIfPermitted('student_profile', "<li><a href='student_profile'><i class='fa fa-user'></i><span>Profile</span></a></li>"); ?>
					<?= showIfPermitted('my_subject_performance', "<li><a href='my_subject_performance'><i class='fa fa-user'></i><span>Subject Performance</span></a></li>"); ?>
					<?= showIfPermitted('subjects_to_offer', "<li><a href='subjects_to_offer'><i class='fa fa-book'></i><span>Subjects you are to offer</span></a></li>"); ?>
					<?= showIfPermitted('student_register_subject', "<li><a href='student_register_subject'><i class='fa fa-upload'></i><span>Register Subjects</span></a></li>"); ?>
					<?= showIfPermitted('student_print_slip', "<li><a href='student_print_slip'><i class='fa fa-print'></i><span>Print Slip</span></a></li>"); ?>
					<?= showIfPermitted('view_class_members', "<li><a href='view_class_members'><i class='fa fa-users'></i><span>My Class Members</span></a></li>"); ?>
					
					
				<?= showIfPermitted('view_class_attendance', "<li><a href='view_class_attendance'><i class='fa fa-clipboard-check'></i><span> My Class Attendance </span></a></li>"); ?>

					<?= showIfPermitted('student_reset_password', "<li><a href='student_reset_password'><i class='fa fa-key'></i><span>Password Reset</span></a></li>"); ?>

					<?php
					function renderSubmenu($title, $icon, $items) {
						if ($items !== '') {
							echo "<li class='treeview'><a href='#'><i class='fa $icon'></i><span>$title</span><i class='fa fa-angle-right'></i></a><ul class='treeview-menu'>$items</ul></li>";
						}
					}

					renderSubmenu('School Settings', 'fa fa-cogs',
						showIfPermitted('manage_school_info', "<li><a href='manage_school_info'><i class='fas fa-caret-right'></i> Edit School Information</a></li>") .
						showIfPermitted('view_school_info', "<li><a href='view_school_info'><i class='fas fa-caret-right'></i> View School Information</a></li>") .
						showIfPermitted('session_term', "<li><a href='session_term'><i class='fas fa-caret-right'></i> Session, Term and Dates</a></li>") .
						showIfPermitted('save_account_details', "<li><a href='save_account_details'><i class='fas fa-caret-right'></i> Save Account Details</a></li>") .
						showIfPermitted('account_detail', "<li><a href='account_detail'><i class='fas fa-caret-right'></i> View Bank Details</a></li>") 
					);
					echo showIfPermitted('send_sms', "<li><a href='send_sms'><i class='fa fa-book'></i> <span>SMS</span></a></li>");
					echo showIfPermitted('monitor_reward', "<li><a href='monitor_reward'><i class='fa fa-book'></i> <span>Staff Performance</span></a></li>");
					echo showIfPermitted('staff_reward', "<li><a href='staff_reward'><i class='fa fa-book'></i> <span>Reward Metric</span></a></li>");
					
					echo showIfPermitted('admin_manage_notifications', "<li><a href='admin_manage_notifications'><i class='fa fa-bullhorn'></i><span>Notifications</span></a></li>");
					renderSubmenu('Result Pin', 'fa-laptop',
						showIfPermitted('generate_pins', "<li><a href='generate_pins'><i class='fas fa-caret-right'></i> Generate Result Pins</a></li>") .
						showIfPermitted('view_uploaded_pins', "<li><a href='view_uploaded_pins'><i class='fas fa-caret-right'></i> View Uploaded Pin</a></li>") .
						showIfPermitted('view_used_pins', "<li><a href='view_used_pins'><i class='fas fa-caret-right'></i> View Used Pin</a></li>") .
						showIfPermitted('view_unused_pins', "<li><a href='view_unused_pins'><i class='fas fa-caret-right'></i> View Unused Pin</a></li>")
					);
					
						renderSubmenu('Assignment Panel', 'fa fa-folder-open',
						showIfPermitted('issue_assignment', "<li><a href='issue_assignment'><i class='fas fa-caret-right'></i> Issue Assignment</a></li>") .
						showIfPermitted('view_submission', "<li><a href='view_submission'><i class='fas fa-caret-right'></i> View Submission</a></li>") .
						showIfPermitted('grade_assignment', "<li><a href='grade_assignment'><i class='fas fa-caret-right'></i> Grade Assignment</a></li>") .
						showIfPermitted('graded_assignment', "<li><a href='graded_assignment'><i class='fas fa-caret-right'></i> View Graded Assignment</a></li>") .
						showIfPermitted('student_view_submitted_assignment', "<li><a href='student_view_submitted_assignment'><i class='fas fa-caret-right'></i> View Submitted Assignment</a></li>") .
						
						showIfPermitted('student_submit_assignment', "<li><a href='student_submit_assignment'><i class='fas fa-caret-right'></i> Submit Assignment</a></li>") .
						
						showIfPermitted('student_check_assignment', "<li><a href='student_check_assignment'><i class='fas fa-caret-right'></i> Check Assignment</a></li>") 
						
					);
					
						renderSubmenu('Timetable Management', 'fa fa-user-plus',
						showIfPermitted('create_timetable', "<li><a href='create_timetable'><i class='fas fa-caret-right'></i> Create Timetable</a></li>") .
						showIfPermitted('view_timetable', "<li><a href='view_timetable'><i class='fas fa-caret-right'></i> View Timetable</a></li>") 
						
					);
					
					
					
					renderSubmenu('Admission Desk', 'fa fa-user-plus',
						showIfPermitted('admission_request', "<li><a href='admission_request'><i class='fas fa-caret-right'></i> Admission Request</a></li>") .
						showIfPermitted('accepted_request', "<li><a href='accepted_request'><i class='fas fa-caret-right'></i> Accepted Request</a></li>") .
						showIfPermitted('rejected_request', "<li><a href='rejected_request'><i class='fas fa-caret-right'></i> Rejected Request</a></li>") 
					);
					
						renderSubmenu('E-Learning', 'fa fa-graduation-cap',
						
						showIfPermitted('create_virtual_class', "<li><a href='create_virtual_class'><i class='fas fa-caret-right'></i> Create Virtual Class</a></li>") .
						showIfPermitted('student_classes', "<li><a href='student_classes'><i class='fas fa-caret-right'></i> View Class</a></li>") 
					);
					
					
					renderSubmenu('Curriculum Control', 'fa fa-book',
						showIfPermitted('curriculum', "<li><a href='curriculum'><i class='fas fa-caret-right'></i> Add Curriculum</a></li>") .
						showIfPermitted('view_curriculum', "<li><a href='view_curriculum'><i class='fas fa-caret-right'></i> View Curriculum</a></li>") 
					);
					
					renderSubmenu('TimeTable Management', 'fa fa-book',
						showIfPermitted('create_timetable', "<li><a href='create_timetable'><i class='fas fa-caret-right'></i> Create Timetable</a></li>") .
						showIfPermitted('view_timetable', "<li><a href='view_timetable'><i class='fas fa-caret-right'></i> View Timetable</a></li>") 
					);
					
					
					


				
					renderSubmenu('Invoice Control', 'fa fa-file-invoice-dollar',
					    showIfPermitted('invoice_create', "<li><a href='invoice_create'><i class='fas fa-caret-right'></i> Create Invoice</a></li>")  .
					     showIfPermitted('view_invoice', "<li><a href='view_invoice'><i class='fas fa-caret-right'></i> View Invoice</a></li>") 
					);
					
					renderSubmenu('Performance Hub', 'fa fa-chart-line',
						showIfPermitted('performance_by_class', "<li><a href='performance_by_class'><i class='fas fa-caret-right'></i> By Class</a></li>") .
						showIfPermitted('performance_by_subject', "<li><a href='performance_by_subject'><i class='fas fa-caret-right'></i> By Subject</a></li>")						
					);
					
					renderSubmenu('Student', 'icon-graduation icons',
						showIfPermitted('view_students', "<li><a href='view_students'><i class='fas fa-caret-right'></i> Students</a></li>") .
						showIfPermitted('id_card_generator', "<li><a href='id_card_generator'><i class='fas fa-caret-right'></i> I.D Card</a></li>") .
						showIfPermitted('teacher_view_students', "<li><a href='teacher_view_students'><i class='fas fa-caret-right'></i> Students</a></li>") .
						showIfPermitted('promote_students', "<li><a href='promote_students'><i class='fas fa-caret-right'></i> Promote All Students</a></li>") .
						showIfPermitted('promote_selected_students', "<li><a href='promote_selected_students'><i class='fas fa-caret-right'></i> Promote Selected Students</a></li>") .
						showIfPermitted('demote_student', "<li><a href='demote_student'><i class='fas fa-caret-right'></i> Demote Students</a></li>") .
						showIfPermitted('manage_student_status', "<li><a href='manage_student_status'><i class='fas fa-caret-right'></i> Manage Students Status</a></li>") .
						showIfPermitted('transfer_list', "<li><a href='transfer_list'><i class='fas fa-caret-right'></i> Transfer Certificate</a></li>")
					);

					renderSubmenu('Behavioral Analysis', 'fa-edit',
						showIfPermitted('student_conducts', "<li><a href='student_conducts'><i class='fas fa-caret-right'></i> Record Behaviour</a></li>") .
						showIfPermitted('view_conducts', "<li><a href='view_conducts'><i class='fas fa-caret-right'></i> View Behaviour</a></li>") .
						showIfPermitted('teacher_upload_conducts', "<li><a href='teacher_upload_conducts'><i class='fas fa-caret-right'></i> Record Behaviour</a></li>") .
						showIfPermitted('teacher_view_conducts', "<li><a href='teacher_view_conducts'><i class='fas fa-caret-right'></i> View Behaviour</a></li>")
					);

					renderSubmenu('Attendance', 'icons icon-chart',
						showIfPermitted('class_attendance', "<li><a href='class_attendance'><i class='fas fa-caret-right'></i> Student Attendance</a></li>") .
						showIfPermitted('teacher_upload_attendance', "<li><a href='teacher_upload_attendance'><i class='fas fa-caret-right'></i> Record Student Attendance</a></li>") .
						showIfPermitted('view_attendance_records', "<li><a href='view_attendance_records'><i class='fas fa-caret-right'></i> Student Attendance History</a></li>") .
						showIfPermitted('teacher_view_attendance', "<li><a href='teacher_view_attendance'><i class='fas fa-caret-right'></i> View Student Attendance</a></li>") .
						showIfPermitted('scan_attendance', "<li><a href='scan_attendance'><i class='fas fa-caret-right'></i> Scan Attendance</a></li>") .
							showIfPermitted('admin_analytics', "<li><a href='admin_analytics'><i class='fas fa-caret-right'></i> Attendance Security Analytics</a></li>") .
						showIfPermitted('qr_attendance', "<li><a href='qr_attendance'><i class='fas fa-caret-right'></i> Scan Student ID Card</a></li>") .
						showIfPermitted('staff_attendance', "<li><a href='staff_attendance'><i class='fas fa-caret-right'></i> Scan Staff ID Card</a></li>") .
						showIfPermitted('print_qr_code', "<li><a href='print_qr_code'><i class='fas fa-caret-right'></i> Print QR Code</a></li>") .
						showIfPermitted('scan_qr_code', "<li><a href='scan_qr_code'><i class='fas fa-caret-right'></i> Scan QR Code</a></li>") .
						showIfPermitted('attendance_settings', "<li><a href='attendance_settings'><i class='fas fa-caret-right'></i> Set Penalty Fee</a></li>") .
						showIfPermitted('late_record', "<li><a href='late_record'><i class='fas fa-caret-right'></i> My Lateness Record</a></li>") .
						showIfPermitted('staff_attendance_history', "<li><a href='staff_attendance_history'><i class='fas fa-caret-right'></i> Staff Attendance History</a></li>")
					);

					renderSubmenu('Academic', 'fa-file-text',
						showIfPermitted('class', "<li><a href='class'><i class='fas fa-caret-right'></i> Class</a></li>") .
							showIfPermitted('subjects_reg', "<li><a href='subjects_reg'><i class='fas fa-caret-right'></i> Audit Subject Registered</a></li>") .
						showIfPermitted('view_subject', "<li><a href='view_subject'><i class='fas fa-caret-right'></i> All Subjects</a></li>") .
						showIfPermitted('register_student_subject', "<li><a href='register_student_subject'><i class='fas fa-caret-right'></i> Register Student Subject</a></li>") .
						showIfPermitted('teacher_register_student_subject', "<li><a href='teacher_register_student_subject'><i class='fas fa-caret-right'></i> Register Subject by Class</a></li>") .
						showIfPermitted('subject_teacher_register_student_subjects', "<li><a href='subject_teacher_register_student_subjects'><i class='fas fa-caret-right'></i> Register Subject(s)</a></li>") .
						showIfPermitted('subject_teacher_view_student_subjects', "<li><a href='subject_teacher_view_student_subjects'><i class='fas fa-caret-right'></i> View Registered Subject(s)</a></li>") .
						showIfPermitted('view_registered_subjects', "<li><a href='view_registered_subjects'><i class='fas fa-caret-right'></i> View Registered Subject</a></li>") .
						showIfPermitted('teacher_view_registered_subjects', "<li><a href='teacher_view_registered_subjects'><i class='fas fa-caret-right'></i> View Subject by Class</a></li>") .
						showIfPermitted('specify_subjects_level', "<li><a href='specify_subjects_level'><i class='fas fa-caret-right'></i> Specify Subject Levels</a></li>") .
						showIfPermitted('specify_subject_number', "<li><a href='specify_subject_number'><i class='fas fa-caret-right'></i> No of Subject Specification</a></li>")
					);
					echo showIfPermitted('manage_debtors', "<li><a href='manage_debtors'><i class='fa fa-user-times'></i><span> Debtors</span></a></li>");
                    echo showIfPermitted('staff_payroll', "<li><a href='staff_payroll'><i class='fa fa-money-check-alt'></i><span> Payroll</span></a></li>");
                    echo showIfPermitted('staff_id_card', "<li><a href='staff_id_card'><i class='fa fa-id-card'></i><span> Staff ID Card</span></a></li>");
					
					renderSubmenu('Result', 'fa-book',
					    showIfPermitted('admin_upload_assignment', "<li><a href='admin_upload_assignment'><i class='fas fa-caret-right'></i> Upload Assignment</a></li>") .
					    showIfPermitted('class_teacher_upload_assignment', "<li><a href='class_teacher_upload_assignment'><i class='fas fa-caret-right'></i> Upload Assignment</a></li>") .
					    showIfPermitted('subject_teacher_upload_assignment', "<li><a href='subject_teacher_upload_assignment'><i class='fas fa-caret-right'></i> Upload Assignment</a></li>") .
						showIfPermitted('admin_upload_ca', "<li><a href='admin_upload_ca'><i class='fas fa-caret-right'></i> Upload CA Scores</a></li>") .
						showIfPermitted('admin_upload_exam', "<li><a href='admin_upload_exam'><i class='fas fa-caret-right'></i> Upload Exam Scores</a></li>") .
						showIfPermitted('teacher_upload_ca', "<li><a href='teacher_upload_ca'><i class='fas fa-caret-right'></i> Upload CA by Class</a></li>") .
						showIfPermitted('teacher_upload_exam', "<li><a href='teacher_upload_exam'><i class='fas fa-caret-right'></i> Upload Exam by Class</a></li>") .
						showIfPermitted('subject_teacher_upload_ca', "<li><a href='subject_teacher_upload_ca'><i class='fas fa-caret-right'></i> Upload CA by Subject(s)</a></li>") .
						showIfPermitted('subject_teacher_upload_exam', "<li><a href='subject_teacher_upload_exam'><i class='fas fa-caret-right'></i> Upload Exam by Subject(s)</a></li>") .
						showIfPermitted('update_subject_rank', "<li><a href='update_subject_rank'><i class='fas fa-caret-right'></i> Update Scores Rank</a></li>") .
						showIfPermitted('view_uploaded_results', "<li><a href='view_uploaded_results'><i class='fas fa-caret-right'></i> View Uploaded Result</a></li>") .
						showIfPermitted('teacher_view_upload', "<li><a href='teacher_view_upload'><i class='fas fa-caret-right'></i> View Result by Class</a></li>") .
						showIfPermitted('result_upload_audit', "<li><a href='result_upload_audit'><i class='fas fa-caret-right'></i> Result Audit</a></li>") .
						showIfPermitted('subject_teacher_view_upload', "<li><a href='subject_teacher_view_upload'><i class='fas fa-caret-right'></i> View Result by Subject(s)</a></li>") .
						showIfPermitted('view_class_broadsheet', "<li><a href='view_class_broadsheet'><i class='fas fa-caret-right'></i> View Class Broadsheet</a></li>") .
						showIfPermitted('teacher_view_broadsheet', "<li><a href='teacher_view_broadsheet'><i class='fas fa-caret-right'></i> View Class Broadsheet</a></li>") .
						showIfPermitted('publish_result', "<li><a href='publish_result'><i class='fas fa-caret-right'></i> Publish Termly Result</a></li>") .		
						showIfPermitted('publish_annual_result', "<li><a href='publish_annual_result'><i class='fas fa-caret-right'></i> Publish Annual Result</a></li>") .
						showIfPermitted('teacher_view_published_result', "<li><a href='teacher_view_published_result'><i class='fas fa-caret-right'></i> View Published Result</a></li>") .
						showIfPermitted('view_published_result', "<li><a href='view_published_result'><i class='fas fa-caret-right'></i> View Published Result</a></li>") .	
						showIfPermitted('view_annual_published_result', "<li><a href='view_annual_published_result'><i class='fas fa-caret-right'></i> View Annual Published Result</a></li>") .
						showIfPermitted('head_teacher_result_comment', "<li><a href='head_teacher_result_comment'><i class='fas fa-caret-right'></i> Result Comment</a></li>") .
						showIfPermitted('class_teacher_result_comment', "<li><a href='class_teacher_result_comment'><i class='fas fa-caret-right'></i> Result Comment</a></li>") 
						
					);

					renderSubmenu('Fees Management', 'fa-tasks',
						showIfPermitted('fee_structure', "<li><a href='fee_structure'><i class='fas fa-caret-right'></i> Fee Structure</a></li>") .
						showIfPermitted('generate_fee_invoice', "<li><a href='generate_fee_invoice'><i class='fas fa-caret-right'></i> Generate Fee Invoice</a></li>") .
						
						showIfPermitted('fee_payment', "<li><a href='fee_payment'><i class='fas fa-caret-right'></i> Record Fee</a></li>") .
						showIfPermitted('arrears', "<li><a href='arrears'><i class='fas fa-caret-right'></i> Pay Arrears</a></li>") .
						showIfPermitted('view_fee_payment', "<li><a href='view_fee_payment'><i class='fas fa-caret-right'></i> View Fee Payment</a></li>") .
						
						showIfPermitted('payment_audit', "<li><a href='payment_audit'><i class='fas fa-caret-right'></i> Fee Audit Trail </a></li>") .
						showIfPermitted('fee_summary', "<li><a href='fee_summary'><i class='fas fa-caret-right'></i> Fee Summary</a></li>") .
						showIfPermitted('outstanding_fees', "<li><a href='outstanding_fees'><i class='fas fa-caret-right'></i> Outstanding Fee </a></li>") .
						showIfPermitted('view_student_fees', "<li><a href='view_student_fees'><i class='fas fa-caret-right'></i> View Payments History </a></li>") .
						showIfPermitted('pay_fee', "<li><a href='pay_fee'><i class='fas fa-caret-right'></i> Pay Tuition Fee </a></li>")  .
							showIfPermitted('family_payment', "<li><a href='family_payment'><i class='fas fa-caret-right'></i> Create Family </a></li>")  .
						showIfPermitted('virtual_account', "<li><a href='virtual_account'><i class='fas fa-caret-right'></i> Generate Account No </a></li>")
						
					);
					
                    echo showIfPermitted('manage_expenses', "<li><a href='manage_expenses'><i class='fa fa-money-bill-wave'></i> <span>Manage Expenses</span></a></li>");
                    echo showIfPermitted('pending_expenses', "<li><a href='pending_expenses'><i class='fa fa-hourglass-half'></i> <span>Pending Expenses</span></a></li>");
                    echo showIfPermitted('upload_lesson_plans', "<li><a href='upload_lesson_plans'><i class='fa fa-upload'></i> <span>Upload E-note</span></a></li>");
                    echo showIfPermitted('teacher_lesson_plans', "<li><a href='teacher_lesson_plans'><i class='fa fa-book'></i> <span>Upload E-note</span></a></li>");
                    echo showIfPermitted('student_enote', "<li><a href='student_enote'><i class='fa fa-book-open'></i> <span>My E-note</span></a></li>");

					renderSubmenu('Role and Permission', 'fa-key',
						showIfPermitted('role', "<li><a href='role'><i class='fas fa-caret-right'></i> Role</a></li>") .
						showIfPermitted('permissions', "<li><a href='permissions'><i class='fas fa-caret-right'></i> Permission</a></li>")
					);

					renderSubmenu('Staff Management', 'fa-users',
						showIfPermitted('staff', "<li><a href='staff'><i class='fas fa-caret-right'></i> Staff</a></li>") .
						showIfPermitted('assign_class_to_staff', "<li><a href='assign_class_to_staff'><i class='fas fa-caret-right'></i> Staff and their Classes</a></li>").
						showIfPermitted('assign_subject_to_staff', "<li><a href='assign_subject_to_staff'><i class='fas fa-caret-right'></i> Staff and their Subject</a></li>")
					);

					echo showIfPermitted('reset_password', "<li><a href='reset_password'><i class='fa fa-key'></i><span>Password Reset</span></a></li>");
					echo showIfPermitted('teacher_reset_password', "<li><a href='teacher_reset_password'><i class='fa fa-key'></i><span>Password Reset</span></a></li>");
					renderSubmenu('Generate Contacts', 'fa-user',
						showIfPermitted('all_contact', "<li><a href='all_contact'><i class='fas fa-caret-right'></i> All Contacts</a></li>")
					);
					?>
				</ul>

            </section>
        </aside>
        
         <div class='page-wrapper'>
         
                  <div class='content-wrapper'>
                  
                  