<?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); ?>
        <span style="font-size: 15px; text-decoration: none; color: black">
            <span><u>Niveau</u> : <strong><?php echo e($level->code); ?></strong></span>
        </span>
        <div class="table-responsive">
            <table class="table table-bordered" id="myTable_I_<?php echo e($j++); ?>" style="width: 100%">
                <thead>
                    <tr>
                        <th class="text-center" style="width: 3%">N°</th>
                        <th class="text-center" style="width: 8%">Matricule</th>
                        <th class="text-center" style="width: 8%">Nom</th>
                        <th class="text-center" style="width: 20%">Prénoms</th>
                        <th class="text-center" style="width: 5%">Sexe</th>
                        <th class="text-center" style="width: 10%">Date Nais</th>
                        <th class="text-center" style="width: 10%">Lieu Nais</th>
                        <th class="text-center" title="Nationalité" style="width: 9%">Nat.</th>
                        <th class="text-center" title="Redoublant" style="width: 5%">Red.</th>
                        <th class="text-center" style="width: 5%">Affecté</th>
                        <th class="text-center" style="width: 5%">Moy.</th>
                        <th class="text-center" style="width: 5%">Rang</th>
                        <th class="text-center" title="Observation" style="width: 5%">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 $__currentLoopData = $dts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?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"><?php echo e($i < 10 ? '0'.$i++:$i++); ?></td>
                        <td class="text-left"><?php echo e($item->student->matricule); ?></td>
                        <td class="text-left"><?php echo e(strtoupper($item->student->first_name)); ?></td>
                        <td class="text-left"><?php echo e(ucwords($item->student->last_name)); ?></td>
                        <td class="text-center"><?php echo e(ucwords($item->student->sexe)); ?></td>
                        <td class="text-center"><?php echo e(date('d/m/Y', strtotime($item->student->date_birth))); ?></td>
                        <td class="text-left"><?php echo e(ucwords($item->student->place_birth)); ?></td>
                        <td class="text-left"><?php echo e(ucwords($item->student->nationalitie->libelle)); ?></td>
                        <td class="text-center"><?php echo e(ucwords($item->redoublant)); ?></td>
                        <td class="text-center"><?php echo e(ucwords($item->affecte)); ?></td>
                        <td class="text-center"><?php echo e($moyen['moyen']); ?></td>
                        <td class="text-center"><?php echo e($moyen['rang']); ?></td>
                        <td class="text-left"><?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(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?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/af821235.blade.php ENDPATH**/ ?>