| # | 
                        Course | 
                        Exam No | 
                        Names | 
                        Project | 
                        Exam | 
                        Total | 
                        Grade | 
                        Remark | 
                         | 
                         | 
                    
                
                
                    @if (count($students))
                        @php $sno = 1 @endphp
                        @foreach ($students as $student)
                            
                                | {{ $sno++ }} | 
                                {{ $student->course_code }} | 
                                {{ $student->registration_number }} | 
                                {{ $student->surname }}, {{ $student->forenames }} | 
                                {{ $project = $student->project }} | 
                                {{ $exam = $student->exam }} | 
                                {{ $total = $exam + $project }} | 
                                {{ grade($project, $exam, $student->id)->name ?? '' }}
                                 | 
                                {{ grade($project, $exam, $student->id)->remark ?? '' }} | 
                                
                                    @if ($student->published)
                                        Published
                                    @else
                                        Unpublished
                                    @endif
                                 | 
                                
                                    @if ($student->published)
                                        
                                    @else
                                        Publish
                                    @endif
                                 | 
                            
                        @endforeach
                        
                             | 
                            
                                @if (isset($intake_id) && isset($programme_id) && isset($campus_id))
                                    Unpublish all  
                                @endif
                                Publish all
                             | 
                        
                    @else
                        
                            
                                No submitted results yet.
                             | 
                        
                    @endif