@include('layouts.left-menu')
        
            
                
                     Classes
                    
                    
                        @isset($school_classes)
                            @foreach ($school_classes as $school_class)
                            @php
                                $total_sections = 0;
                            @endphp
                                
                                    
                                        
                                        
                                            
                                                
                                                    
                                                        @isset($school_sections)
                                                            @foreach ($school_sections as $school_section)
                                                                @if ($school_section->class_id == $school_class->id)
                                                                    @php
                                                                        $total_sections++;
                                                                    @endphp
                                                                    
                                                                        
                                                                        
                                                                            
                                                                                
                                                                                    Room No: {{$school_section->room_no}}
                                                                                    @can('edit sections')
                                                                                     Edit
                                                                                    @endcan
                                                                                
                                                                                
                                                                             
                                                                         
                                                                     
                                                                @endif
                                                            @endforeach
                                                        @endisset
                                                    
 
                                                
                                                    @isset($school_class->syllabi)
                                                    
                                                        
                                                        
                                                            | Syllabus Name | Actions | 
                                                        
                                                        
                                                        @foreach ($school_class->syllabi as $syllabus)
                                                            
                                                            | {{$syllabus->syllabus_name}} |  | 
                                                        @endforeach
                                                        
                                                    
                                                    @endisset
                                                
                                                    @isset($school_class->courses)
                                                        
                                                            
                                                            
                                                                | Course Name | Type | Actions | 
                                                            
                                                            
                                                                @foreach ($school_class->courses as $course)
                                                            
                                                                | {{$course->course_name}} | {{$course->course_type}} | @can('edit courses')
                                                                     Edit
                                                                    @endcan | 
                                                            @endforeach
                                                            
                                                        
                                                    @endisset
                                                
 
                                         
                                        
                                     
                                 
                            @endforeach
                        @endisset
                    
 
             
            @include('layouts.footer')