<?php
use App\Services\Chapter1Service;
use Livewire\Component;
?>

<div>
    <?php $j = 1 ?>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $levels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $level): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
        <?php $dts = $this->getResultat($level->id); ?>
        <div style="font-size: 13px; text-decoration: none; margin-left: 110px;">
            <span><u>Niveau</u> : <strong><?php echo e($level->code); ?></strong></span>
        </div>
        <div style="margin-bottom: 25px; margin-top: 25px;">
            <table class="table table-bordered" id="myTable_I_<?php echo e($j++); ?>" style="width: 100%">
                <thead>
                    <tr>
                        <th class="text-center" style="width: 3%; padding: 8px">N°</th>
                        <th class="text-center" style="width: 8%; padding: 8px">Matricule</th>
                        <th class="text-center" style="width: 8%; padding: 8px">Nom</th>
                        <th class="text-center" style="width: 20%; padding: 8px">Prénoms</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Sexe</th>
                        <th class="text-center" style="width: 10%; padding: 8px">Date Nais</th>
                        <th class="text-center" style="width: 10%; padding: 8px">Lieu Nais</th>
                        <th class="text-center" style="width: 9%; padding: 8px">Nat.</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Red.</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Affecté</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Moy.</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Rang</th>
                        <th class="text-center" style="width: 5%; padding: 8px">Ob.</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $i = 1; ?>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $dts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                    <?php $moyen = $this->getMoyen($item->id); ?>
                    <tr>
                        <td class="text-center" style="padding: 8px"><?php echo e($i < 10 ? '0'.$i++:$i++); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e($item->student->matricule); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e(strtoupper($item->student->first_name)); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e(ucwords($item->student->last_name)); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e(ucwords($item->student->sexe)); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e(date('d/m/Y', strtotime($item->student->date_birth))); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e(ucwords($item->student->place_birth)); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e(ucwords($item->student->nationalitie->libelle)); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e(ucwords($item->redoublant)); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e(ucwords($item->affecte)); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e($moyen['moyen']); ?></td>
                        <td class="text-center" style="padding: 8px"><?php echo e($moyen['rang']); ?></td>
                        <td class="text-left" style="padding: 8px"><?php echo e(ucwords($moyen['ob'])); ?></td>
                    </tr>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        <tr>
                            <td colspan="13" class="text-center" style="padding: 8px">Under defined</td>
                        </tr>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </tbody>
            </table>
        </div>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
</div><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\storage\framework/views/livewire/views/641538bd.blade.php ENDPATH**/ ?>