

<?php $__env->startSection('title'); ?>
    تقرير الاختبارات للدورة التدريبية
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
    <!--**********************************
                            Content body start
                        ***********************************-->
    <?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('route-path'); ?>
    <div class="container-fluid container-fluid-traning px-0">
        <div class="d-flex flex-wrap align-items-end justify-content-between  mb-3">
            <h3>
                تقرير اختبارات  
                <?php if(isset($exams[0]->room->name)): ?>
                <?php echo e($exams[0]->room->name); ?>

                <?php echo e($exams[0]->room->course->title); ?>

                <?php endif; ?>
            </h3>
            <div class="link">
                <a href="" class="px-4 ">                   
                </a>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<!-- row -->
<div class="container-fluid container-fluid-traning bg-white">
    <!--**********************************Tabs Start***********************************-->
    <div class="d-flex flex-wrap align-items-start justify-content-start  mb-3">
        <a href="<?php echo e(route('export_exam',$exams[0]->room->id)); ?>" class="btn btn-primary  me-1" >
            <i class="mdi mdi-plus-circle ms-2"></i> تصدير
        </a>
    </div>
    <!--**********************************Tabs End***********************************-->
    <div class="row">
        <div class="col-xl-12 tab-content">
            <!--**********************************Table AllTransaction Start***********************************-->

            <div class="tab-pane fade show active" id="AllTransaction" role="tabpanel"
                aria-labelledby="transaction-tab">
                <div class="table-responsive fs-14">
                    <table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example">
                        <thead>
                            <tr>
                                <th>رقم </th>
                                <th>اسم المتدرب </th>
                                
                                <th>نوع الاختبار</th>
                                <th> تاريخ رفع الاختبار</th>
                                <th> درجة الطالب</th>
                                <th>درجة الإختبار</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php if(isset($exams)): ?>
                            <?php $__currentLoopData = $exams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $exam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php $__currentLoopData = $exam->uploaded; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr class="odd" role="row">
                                        <td>
                                             <?php if(isset($student)): ?>
                                                <?php echo e($loop->iteration); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <?php if(isset($student->subscribe->student->name)): ?>
                                                <?php echo e($student->subscribe->student->name); ?>

                                            <?php endif; ?>
                                           
                                        </td>
                                        
                                        <td>
                                            <?php if(isset($student->exam)): ?>
                                            <?php if($student->exam->type ==0): ?>
                                                قبلي
                                                <?php elseif($student->exam->type==1): ?>
                                                بعدي
                                                <?php else: ?>
                                                اجتياز
                                                <?php endif; ?>
                                            <?php endif; ?>
                                        </td>
                                        <td> 
                                            <?php if(isset($student->created_at)): ?>
                                            <?php echo e($student->created_at); ?>

                                           
                                        <?php endif; ?>
                                        </td>
                                        <td> 
                                            <?php if(isset($student->totalMark)): ?>
                                            <?php echo e($student->totalMark); ?>

                                        <?php endif; ?>
                                        </td>
                                        <td> 
                                            <?php if(isset($student->questionMark)): ?>
                                            <?php echo e($student->questionMark); ?>

                                        <?php endif; ?>
                                        </td>
                                        
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!--**********************************Table AllTransaction End***********************************-->
        </div>
    </div>
</div>

<!--**********************************
                        Content body end
            ***********************************-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\TrainingManagementPlatform\resources\views/reports/exam-room.blade.php ENDPATH**/ ?>