
<table >
    <thead>
        <tr>
            <th>رقم </th>
            <th>اسم المتدرب </th>
            <th>نوع الاختبار</th>
            <th> تاريخ رفع الاختبار</th>
            <th> درجة الطالب</th>
            <th>درجة الإختبار</th>

        </tr>
    </thead>
    <tbody>
        @isset($exams)
        @foreach ($exams as $exam)
            @foreach ($exam->uploaded as $student)
                <tr class="odd" role="row">
                    <td>
                         @isset($student)
                            {{ $loop->iteration }}
                        @endisset
                    </td>
                    <td>
                        @isset($student->subscribe->student->name)
                            {{$student->subscribe->student->name}}
                        @endisset
                       
                    </td>
                    {{-- <td>
                        @isset($student->exam->room->name)
                        {{$student->exam->room->name}}
                        {{$student->exam->room->course->title}}

                    @endisset
                    </td> --}}
                    <td>
                        @isset($student->exam)
                        @if($student->exam->type ==0)
                            قبلي
                            @elseif($student->exam->type==1)
                            بعدي
                            @else
                            اجتياز
                            @endif
                        @endisset
                    </td>
                    <td> 
                        @isset($student->created_at)
                        
                    @endisset
                    </td>
                    <td> 
                        @isset($student->totalMark)
                        {{$student->totalMark}}
                    @endisset
                    </td>
                    <td> 
                        @isset($student->questionMark)
                        {{$student->questionMark}}
                    @endisset
                    </td>
                    
                </tr>
            @endforeach
            @endforeach
        @endisset
    </tbody>
</table>