<table >
   <tr>
    <td>اسم البرنامج : </td>
    <td> <?php echo e($rooms[0]->room->name); ?> <?php echo e($rooms[0]->room->course->title); ?></td>
   </tr>
   <tr>
    <td>تاريخ التنفيذ  : </td>
    <td>
<?php echo e($rooms[0]->attendances[$rooms[0]->attendances->count()-1]->created_at->format('Y/m/d').' - '. $rooms[0]->attendances[0]->created_at->format('Y/m/d')); ?>

    </td>
   </tr>
   <tr>
    <td> مكان التنفيذ : </td>
    <td> 
        <?php echo e($rooms[0]->room->place); ?>

    </td>
   </tr>
</table>
<table >
    <thead>
        <tr>
            <th>رقم </th>
            <th>اسم المتدرب </th>
            <?php $__currentLoopData = $rooms[0]->attendances; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lesson): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(isset($lesson)): ?>
                <th>
                    <?php echo e($arrayDays[$lesson->created_at->format('D')]); ?>

                </th>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <th>نسبة الحضور</th>
            <th>نسبة الغياب</th>
            <th>نسبة الدروس الغير منجزة</th>
        </tr>
    </thead>
    <tbody>
        <?php if(isset($rooms)): ?>
            <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr class="odd" role="row">
                    <td>
                        <?php if(isset($room)): ?>
                            <?php echo e($loop->iteration); ?>

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

                        <?php endif; ?>
                    </td>
                    <?php $__currentLoopData = $room->attendances; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attendance): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($attendance->is_present == 1): ?>
                        <td>&#10003;</td>
                    <?php else: ?>
                        <td>&#10007;</td>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <td>
                        <?php if(isset($room->presentsPercentage)): ?>
                            <?php echo e($room->presentsPercentage); ?>

                        <?php else: ?>
                            0
                        <?php endif; ?>
                            %
                    </td>
                    <td>
                        <?php if(isset($room->absentsPercentage)): ?>
                            <?php echo e($room->absentsPercentage); ?>

                        <?php else: ?>
                            0
                        <?php endif; ?>
                            %
                    </td>
                    <td>
                        <?php if(isset($room->notAttendantPercentage)): ?>
                            <?php echo e($room->notAttendantPercentage); ?>

                        <?php else: ?>
                            0
                        <?php endif; ?>
                            %
                    </td>

                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </tbody>
</table><?php /**PATH C:\Users\Nasser\Desktop\TrainingManagementPlatform\resources\views/exports/attendances-room.blade.php ENDPATH**/ ?>