<?php
use Livewire\Component;
use App\Models\ReportQuarter;
use App\Models\ActivitParaScolaire;
use App\Services\RepportService;
use App\Services\Chapter3Service;
?>

<div>
    <div class="table-responsive">
        <table class="table table-bordered" style="width: 100%">
            <thead>
                <tr>
                    <th class="text-center" style="padding: 8px">N°</th>
                    <th style="padding: 8px">Activités sportives</th>
                    <th style="padding: 8px">Période</th>
                    <th style="padding: 8px">Elèves responsable</th>
                    <th style="padding: 8px">Educateurs</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 = $data; $__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; ?>
                    <tr>
                        <th class="text-center" style="padding: 8px"><?php echo e($i < 10 ? '0'.$i++:$i++); ?></th>
                        <td style="padding: 8px">
                            <?php echo e(ucfirst($item->activit)); ?>

                        </td>
                        <td style="padding: 8px">
                            Du <?php echo e(date('d/m/Y', strtotime($item->date_dbt)).' au '.date('d/m/Y', strtotime($item->date_fin))); ?>

                        </td>
                        <td style="padding: 8px">
                            <?php echo e(strtoupper($item->inscription->student->first_name).' '.ucwords($item->inscription->student->last_name)); ?>

                        </td>
                        <td style="padding: 8px">
                            <?php echo e(($item->user->sexe == 'F' ? 'Mme':'Mr').' '.strtoupper($item->user->first_name).' '.ucwords($item->user->last_name)); ?>

                        </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="5" class="text-center" style="padding: 8px">Underdefined data</td>
                    </tr>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </tbody>
        </table>
    </div>
</div><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\storage\framework/views/livewire/views/93002849.blade.php ENDPATH**/ ?>