<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="description" content="Educas est une application de gestion d'ecole dans son ensemble">
    <meta name="author" content="Jean-Marius Yao">
    <title><?php echo e('liste_moyenne_'.$decoup->cutting->libelle.'_'.$class->libelle); ?></title>
</head>
<style>
    @page {
        margin: 20px 10px 20px 10px; /* Supprime toutes les marges */
    }

    body {
        margin: 0cm;
        padding: 0cm;
        font-size: .875em;
        overflow-x: hidden;
        color: #353c4e;
        font-family: sans-serif;
    }

    /* applies border to the table */
    table th,td {
        text-align: center
    }

    th, td {
        white-space: nowrap;
    }

    #header {
        /* position: fixed; */
        border-bottom: 2px solid gray;
        left: 0;
        right: 0;
        top: -20px;
        text-align: center;
        font-size: 12px;
        color: #555;
    }

    #footer {
        position: fixed;
        bottom: -50px;
        border-top: 2px solid gray;
        left: 0;
        right: 0;
        height: 50px;
        text-align: center;
        font-size: 12px;
        color: #555;
    }
</style>
<body>
    <header id="header">
        <table style="width: 100%; margin: 0px auto; padding:0%">
        <tbody>
            <tr>
            <td style="width: 50%">
                <table style="width: 100%">
                <tbody>
                    <tr>
                    <td>
                        <div style="text-align: center; font-size: 12px">Ministère de l'Education Nationale, de l'Enseignement <br> Technique et de la   Formation Professionnelle</div>
                    </td>
                    </tr>
                    <tr>
                    <td>
                        <div style="text-align: center;">
                        <b style="font-size: 15px;"><?php echo e(mb_strtoupper($school->school->name_school)); ?></b><br>
                        </div>
                    </td>
                    </tr>
                </tbody>
                </table>
            </td>
            <td style="width: 50%">
                <table style="width: 100%">
                <tbody>
                    <tr>
                    <td>
                        <div style="text-align: center; font-size: 12px;">
                        <b >REPUBLIQUEDE COTE D'IVOIRE</b><br>
                        <i>Union - Discipline - Travail</i>
                        </div>
                    </td>
                    </tr>
                    <tr>
                    <td>
                        <div style="text-align: center;">
                        <b style="font-size: 15px;">Année Scolaire : <b><?php echo e($class->schoolYear->school_year); ?></b>
                        </div>
                    </td>
                    </tr>
                </tbody>
                </table>
            </td>
            </tr>
        </tbody>
        </table>
    </header>
    
    <section style="margin: 5px auto;">
        <div style="margin-top: 20px">
            <div style="margin-top: 35px; text-align: center; font-size:21px; text-decoration: underline;">
                <b>Moyenne <?php echo e(strtoupper($decoup->cutting->libelle)); ?> <?php echo e($class->libelle); ?></b>
            </div>
            <div style="margin-top: 5%">
                <table border="2" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: 100%; margin: 0px auto; border: 1px solid #2c2d2e;">
                    <thead>
                        <tr>
                            <th class="text-center" style="width: 3%">N°</th>
                            <th class="text-center text-uppercase">Nom & Prénoms</th>
                            <th class="text-center text-uppercase">Sexe</th>
                            
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $matters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                            <th class="text-center text-uppercase"><?php echo e($matter['abbreviated'] ?? $matter['libelle']); ?></th>
                            <?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; ?>
                            <th class="text-center text-uppercase">Moy</th>
                            <th class="text-center text-uppercase">Rang</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 = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                        <tr>
                            <th class="text-center"><?php echo e($i <= 9 ? '0'.$i++:$i++); ?></th>
                            <td style="text-align: left"><?php echo e(Str::limit($data['name'], 35, '...')); ?></td>
                            <td class="text-center"><?php echo e($data['sexe']); ?></td>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $data['moyens']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $moyen): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                            <td class="text-center"><?php echo e($moyen ? $moyen['moyenne']:'--'); ?></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; ?>
                            <th class="text-center"><?php echo e($data['moyen'] ?? '--'); ?></th>
                            <td class="text-center"><?php echo e($data['rang'] ?? '--'); ?></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>
        </div>
    </section>

    <footer id="footer">
        <table style="width: 100%">
        <tbody>
            <tr>
            <td style="width: 50%">
                <i style="text-align: left; font-size: 12px; margin:0%"><?php echo e($school->address_email); ?> / <?php echo e($school->phon_school); ?></i>
            </td>
            <td style="width: 25%">
                <i style="text-align: center; font-size: 12px; margin:0%"><?php echo e(strtoupper($class->libelle).' -- '.random_int(1000, 5000).' - 0'.$school->school_id); ?></i>
            </td>
            <td style="width: 25%">
                <i style="text-align: right; float:right; font-size: 12px; margin:0%">Imprimé le <?php echo e(date('Y-m-d H:i:s')); ?></i>
            </td>
            </tr>
        </tbody>
        </table>
    </footer>
</body>
</html><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\resources\views\pdf\list_moyenne.blade.php ENDPATH**/ ?>