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

<div>
    <div class="card-block table-border-style">
        <div class="table-responsive">
            <table class="table table-bordered" style="width: 100%">
                <thead>
                    <tr>
                        <th class="text-center">Année</th>
                        <th class="text-center">Genre</th>
                        <th class="text-center">2nd</th>
                        <th class="text-center">1ere</th>
                        <th class="text-center">Tle</th>
                        <th class="text-center">Total</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($years)): ?>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $years; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $year): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                    <?php $tles = $this->total1($year) ?>
                    <tr>
                        <th class="text-center pt-4"><?php echo e($year); ?></th>
                        <td class="p-0">
                            <table style="width: 100%">
                                <tr>
                                    <td class="text-center py-1">M</td>
                                </tr>
                                <tr>
                                    <td class="text-center py-1">F</td>
                                </tr>
                                <tr>
                                    <td class="text-center py-1">T</td>
                                </tr>
                            </table>
                        </td>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $data; $__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 $dts = $this->data($item->id, $year) ?>
                        <td class="p-0">
                            <table style="width: 100%">
                                <tr>
                                    <td class="text-center py-1"><?php echo e($dts['sexeM'] < 10 ? '0'.$dts['sexeM']:$dts['sexeM']); ?></td>
                                </tr>
                                <tr>
                                    <td class="text-center py-1"><?php echo e($dts['sexeF'] < 10 ? '0'.$dts['sexeF']:$dts['sexeF']); ?></td>
                                </tr>
                                <tr>
                                    <th class="text-center py-1"><?php echo e($dts['total'] < 10 ? '0'.$dts['total']:$dts['total']); ?></th>
                                </tr>
                            </table>
                        </td>
                        <?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; ?>
                        <td class="p-0">
                            <table style="width: 100%">
                                <tr>
                                    <td class="text-center py-1"><?php echo e($tles['sexeM'] < 10 ? '0'.$tles['sexeM']:$tles['sexeM']); ?></td>
                                </tr>
                                <tr>
                                    <td class="text-center py-1"><?php echo e($tles['sexeF'] < 10 ? '0'.$tles['sexeF']:$tles['sexeF']); ?></td>
                                </tr>
                                <tr>
                                    <th class="text-center py-1"><?php echo e($tles['total'] < 10 ? '0'.$tles['total']:$tles['total']); ?></th>
                                </tr>
                            </table>
                        </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; ?>
                    <tr>
                        <th colspan="2" class="text-center py-1">Total</th>
                        <th class="text-center py-1"><?php echo e($total['2nd'] < 10 ? '0'.$total['2nd']:$total['2nd']); ?></th>
                        <th class="text-center py-1"><?php echo e($total['1ere'] < 10 ? '0'.$total['1ere']:$total['1ere']); ?></th>
                        <th class="text-center py-1"><?php echo e($total['tle'] < 10 ? '0'.$total['tle']:$total['tle']); ?></th>
                        <th class="text-center py-1"><?php echo e($total['total'] < 10 ? '0'.$total['total']:$total['total']); ?></th>
                    </tr>
                    <?php else: ?>
                        <tr>
                            <td colspan="8" class="text-center py-1">Data Underfined</td>
                        </tr>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\storage\framework/views/livewire/views/8713aab4.blade.php ENDPATH**/ ?>