<!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>Bulletin De Notes <?php echo e($classe['libelle']); ?></title>
</head>
<style>
    @page {
        margin: 0.5cm; /* haut droite bas gauche */
    }
    body {
        margin: 0cm;
        padding: 0cm;
        font-family: sans-serif;
        font-size: 12px
    }

    #head{
        position: relative;
        width: 100%;
        top: 20px;
        border-bottom: 3px solid grey;
        border-radius: 10px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 90px;
        background: #eee;
        padding-top: 0px;
    }

    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 style="padding: 0%">
    <?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 $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
        
        <div style="page-break-after: always; padding:0%; margin:0%">

            <header id="head">
                <table>
                    <tbody>
                        <tr style="width: 100%;">
                            <td style="width: 10%; height: 80px; padding: 3px">
                                <img src="<?php echo e(public_path($item['school']->logoUrl())); ?>" class="m-b-10" alt="Logo établissement" style="width: 80px; height: 80px;">
                            </td>
                            <td style="width: 490px; height: 80px; border: 2px solid grey; border-radius: 5px; text-align: center; font-size: 13px; padding: 3px">
                                <table style="width: 100%; text-align: center">
                                    <tbody>
                                        <tr style="text-align: center">
                                            <td style="text-align: center"><strong>REPUBLIQUEDE COTE D'IVOIRE</strong></td>
                                        </tr>
                                        <tr style="text-align: center">
                                            <td style="text-align: center">
                                                Ministère de l'Education Nationale et de l'Alphabétisation
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                <strong style="text-transform: uppercase; margin-top: 3px;"><?php echo e($item['school']->school->name_school); ?></strong>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td style="width: 480px; height: 80px; border: 2px solid grey; border-radius: 5px; font-size: 13px;  padding: 3px;">
                                <table style="width: 100%;">
                                    <tbody>
                                        <tr>
                                            <td style="width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                <span>Adresse : <strong><?php echo e($item['school']->addres_postal); ?></strong></span>
                                            </td>
                                            <td style="width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                <span>Code : <b><?php echo e($item['school']->school->code_school); ?></b></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 200px; padding-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                <span>Telephone : <strong><?php echo e($item['school']->phon_school); ?></strong></span>
                                            </td>
                                            <td style="width: 100px; padding-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                <span>Statut : <strong>---</strong></span>
                                            </td>
                                        </tr>
                                        <tr style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                            <td colspan="2" style="padding-top: 5px;">Email : <strong><?php echo e($item['school']->address_email); ?></strong></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </header>
            <!--  -->

            <section style="padding: 0%; margin-top: 5%">
                <div style="width: 100%; height: 17px; margin-top: 10px; margin-bottom: 30px ;text-align: center">
                    <span style="font-size: 20px; text-decoration: underline; font-weight: 700;">
                        Bulletin De Notes  <?php echo e(ucfirst($item['cutting']->cutting->libelle)); ?> - Année Scolaire <?php echo e($item['cutting']->schoolYear->school_year); ?>

                    </span>
                </div>

                <!-- Information sur l'eleve -->
                <section style="width: 100%; background: rgb(228, 226, 226); border: 1px solid gray; margin-top: 5%; padding-bottom: 0px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                    <header style="padding: 3px; border-bottom: 1px solid rgb(179, 178, 178)">
                        <div style="width: 90%; margin: 0px auto; background: rgb(167, 161, 161); padding-top: 3px; padding-bottom: 3px">
                            <table style="width: 100%; margin: 0%">
                                <tbody>
                                    <tr>
                                        <th style="width: 300px; text-align: left; font-size: 17px; padding-left: 5px"><strong><?php echo e(strtoupper($item['student']->student->first_name.' '.$item['student']->student->last_name)); ?></strong></th>
                                        <th style="width: 150px; font-size: 17px; text-align: right; padding-right: 10px"><strong><?php echo e($item['student']->student->matricule); ?></strong></th>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <table style="width: 90%; margin: 5px auto;">
                            <tbody>
                                <tr>
                                    <td style="width: 350px; font-size: 13px">
                                        <table style="width: 100%">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 300px; font-size: 15px">Classe: <strong><?php echo e($item['student']->classe->libelle); ?></strong></td>
                                                    <td style="width: 150px; font-size: 15px">Effectif: <strong><?php echo e($item['student']->classe->inscrits <= 9 ? '0'.$item['student']->classe->inscrits:$item['student']->classe->inscrits); ?></strong></td>
                                                    <td style="width: 100px; font-size: 15px">Interne: <strong>Non</strong></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 300px; font-size: 15px">Sexe: <strong><?php echo e($item['student']->student->sexe == 'F' ? 'Feminin':'Masculin'); ?></strong></td>
                                                    <td style="width: 150px; font-size: 15px">Redoublant<?php echo e($item['student']->student->sexe == 'F' ? 'e':''); ?>: <strong><?php echo e(ucfirst($item['student']['redoublant'])); ?></strong></td>
                                                    <td style="width: 100px; font-size: 15px">Affecté<?php echo e($item['student']->student->sexe == 'F' ? 'e':''); ?>: <strong><?php echo e(ucfirst($item['student']['affecte'])); ?></strong></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 300px; font-size: 15px">Nationalité: <strong><?php echo e(ucwords($item['student']->student->nationalitie->libelle)); ?></strong></td>
                                                    <td style="width: 150px; font-size: 15px">Régime: ---</td>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="font-size: 15px">Né le: <strong><?php echo e(date("d/m/Y", strtotime($item['student']->student->date_birth))); ?></strong> à <strong><?php echo e(ucfirst($item['student']->student->place_birth)); ?></strong></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 90px; height: 50px; text-align: center">
                                        <div style="width: 80%; margin: 0px auto; border: 1px solid grey; border-radius: 5px">
                                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($item['student']->student->photo): ?>
                                            <img src="<?php echo e(public_path('storage/'.$item['student']->student->photo)); ?>" class="img-radius mx-0" alt="Photo" style="height: 90px; width: 90px">
                                            <?php else: ?>
                                            <img src="<?php echo e(public_path($item['student']->student->sexe == 'F' ? 'assets/images/stdt1_woman.png':'assets/images/stdt1_man.png')); ?>" class="photo student default" alt="Photo" style="height: 90px; width: 90px">
                                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?> 
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </header>

                    <body style="margin: 15px; font-size: 14px">
                        <table border="2" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: 100%; margin: 5px auto; border: 1px solid black;">
                            <thead>
                                <tr>
                                    <th style="width: 140px; font-size: 14px">Matières</th>
                                    <th style="width: 50px; font-size: 14px">Moy</th>
                                    <th style="width: 50px; font-size: 14px">Coeff</th>
                                    <th style="width: 60px; font-size: 14px">M. coeff</th>
                                    <th style="width: 50px; font-size: 14px">Rang</th>
                                    <th style="width: 160px; font-size: 14px">Professeur</th>
                                    <th style="width: 180px; font-size: 14px">Appréciation/Emargement</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $item['infosLts']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item1): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <tr style="padding-top: 5px; margin-bottom: 5px">
                                    <td style="width: 140px; font-size: 14px"><?php echo e(ucfirst($item1['libelle'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item1['moyenne']); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item1['moyenne'] == 'nc' ? 'nc':$item1['coef']); ?></td>
                                    <td style="width: 60px; font-size: 14px; text-align: center"><?php echo e(calculMoyenneCoefficenter($item1['moyenne'], $item1['coef'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item1['rang']); ?></td>
                                    <td style="width: 160px; font-size: 14px"><?php echo e($item1['prof']); ?></td>
                                    <td style="width: 180px; font-size: 14px"><?php echo e($item1['moyenne'] == 'nc' ? '--':appreciation($item1['moyenne'])); ?></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; ?>
                                <!-- Bilan Lettres -->
                                <tr style="padding-top: 10px; margin-bottom: 10px; background:rgb(179, 178, 178)">
                                    <th style="width: 140px; font-size: 14px; text-align: left">Bilan Lettres</th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanLts'] ? $item['bilanLts']['moyenne']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanLts'] ? $item['bilanLts']['coeffs']:'nc'); ?></th>
                                    <th style="width: 60px; font-size: 14px; text-align: center"><?php echo e($item['bilanLts'] ? $item['bilanLts']['points']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanLts'] ? $item['bilanLts']['rang']:'nc'); ?></th>
                                    <th colspan="2" style="width: 300px; font-size: 14px"></th>
                                </tr>

                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $item['infosSns']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item2): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <tr style="padding-top: 5px; margin-bottom: 5px">
                                    <td style="width: 140px; font-size: 14px"><?php echo e(ucfirst($item2['libelle'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item2['moyenne']); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item2['moyenne'] == 'nc' ? 'nc':$item2['coef']); ?></td>
                                    <td style="width: 60px; font-size: 14px; text-align: center"><?php echo e(calculMoyenneCoefficenter($item2['moyenne'], $item2['coef'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item2['rang']); ?></td>
                                    <td style="width: 160px; font-size: 14px"><?php echo e($item2['prof']); ?></td>
                                    <td style="width: 180px; font-size: 14px"><?php echo e($item2['moyenne'] == 'nc' ? '--':appreciation($item2['moyenne'])); ?></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; ?>
                                <!-- Bilan Sciences -->
                                <tr style="padding-top: 10px; margin-bottom: 10px; background:rgb(179, 178, 178)">
                                    <th style="width: 140px; font-size: 14px; text-align: left">Bilan Sciences</th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanSns'] ? $item['bilanSns']['moyenne']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanSns'] ? $item['bilanSns']['coeffs']:'nc'); ?></th>
                                    <th style="width: 60px; font-size: 14px; text-align: center"><?php echo e($item['bilanSns'] ? $item['bilanSns']['points']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanSns'] ? $item['bilanSns']['rang']:'nc'); ?></th>
                                    <th colspan="2" style="width: 300px; font-size: 14px"></th>
                                </tr>

                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $item['infosAts']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item3): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <tr style="padding-top: 5px; margin-bottom: 5px">
                                    <td style="width: 140px; font-size: 14px"><?php echo e(ucfirst($item3['libelle'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item3['moyenne']); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item3['moyenne'] == 'nc' ? 'nc':$item3['coef']); ?></td>
                                    <td style="width: 60px; font-size: 14px; text-align: center"><?php echo e(calculMoyenneCoefficenter($item3['moyenne'], $item3['coef'])); ?></td>
                                    <td style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item3['rang']); ?></td>
                                    <td style="width: 160px; font-size: 14px"><?php echo e($item3['prof']); ?></td>
                                    <td style="width: 180px; font-size: 14px"><?php echo e($item3['moyenne'] == 'nc' ? '--':appreciation($item3['moyenne'])); ?></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; ?>
                                <!-- Bilan Autres -->
                                <tr style="padding-top: 10px; margin-bottom: 10px; background:rgb(179, 178, 178)">
                                    <th style="width: 140px; font-size: 14px; text-align: left">Bilan Autres</th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanAts'] ? $item['bilanAts']['moyenne']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanAts'] ? $item['bilanAts']['coeffs']:'nc'); ?></th>
                                    <th style="width: 60px; font-size: 14px; text-align: center"><?php echo e($item['bilanAts'] ? $item['bilanAts']['points']:'nc'); ?></th>
                                    <th style="width: 50px; font-size: 14px; text-align: center"><?php echo e($item['bilanAts'] ? $item['bilanAts']['rang']:'nc'); ?></th>
                                    <th colspan="2" style="width: 300px; font-size: 14px"></th>
                                </tr>
                                <!-- Resultat de fin trimestre -->
                                <tr style="padding-top: 17px; margin-bottom: 17px;">
                                    <th colspan="2" style="width: 190px; font-size: 15px; text-align: left">Totaux</th>
                                    <th style="width: 50px; font-size: 15px; text-align: center"><?php echo e($item['resultat']->coeffs); ?></th>
                                    <th style="width: 60px; font-size: 15px; text-align: center"><?php echo e($item['resultat']->points); ?></th>
                                    <th colspan="2" style="width: 300px; font-size: 15px;">Moyenne: <?php echo e($item['resultat']->moyenne); ?> / 20</th>
                                    <th style="width: 50px; font-size: 15px;">Rang: <?php echo e($item['resultat']->rang); ?> / <?php echo e($item['student']->classe->inscrits <= 9 ? '0'.$item['student']->classe->inscrits:$item['student']->classe->inscrits); ?></th>
                                </tr>
                            </tbody>
                        </table>
                        <div style="margin-top: 20px;">
                            <table style="width: 80%; margin: auto">
                                <tbody>
                                    <tr>
                                        <td style="width: 200px; font-size: 14px; text-align:left;">
                                            Absences justifiées : <b><?php echo e($item['absence_justified']); ?></b> Heure<?php echo e($item['absence_justified'] > '1' ? 's':''); ?>

                                        </td>
                                        <td style="width: 200px; font-size: 14px; text-align:left; padding-right: 20px">
                                            Absences non justifiées : <b><?php echo e($item['absence_no_justified']); ?></b> Heure<?php echo e($item['absence_no_justified'] > '1' ? 's':''); ?>

                                        </td>
                                        <td style="width: 230px; font-size: 14px; text-align:left">Appréciation : ---</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div style="margin-top: 20px;">
                            <table style="width: 80%; margin: auto">
                                <tbody>
                                    <tr>
                                        <td>
                                            <div style="width: 350px; height: 120px; border: 1px solid; padding-top: 0.1em">
                                                <div style="width: 100%; border-bottom: 1px solid; background: rgb(159, 159, 160); text-align: center; padding-top: 5px; padding-bottom: 5px">
                                                    <strong style="font-size: 14px">Statistique de la classe</strong>
                                                </div>
                                                <table style="padding: 10px">
                                                    <tbody>
                                                        <tr>
                                                            <td style="width: 60%; font-size: 14px; padding-left: 20px">Plus forte moyenne :</td>
                                                            <td style="font-size: 14px; padding-left: 20px">
                                                                <strong><?php echo e($item['result_classe']->moyenne_elevee_classe); ?> / 20</strong>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%; font-size: 14px; padding-left: 20px">Plus faible moyenne :</td>
                                                            <td style="font-size: 14px; padding-left: 20px">
                                                                <strong><?php echo e($item['result_classe']->moyenne_moins_classe); ?> / 20</strong>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%; font-size: 14px; padding-left: 20px">Moyenne de la classe :</td>
                                                            <td style="font-size: 14px; padding-left: 20px">
                                                                <strong><?php echo e($item['result_classe']->moyenne); ?> / 20</strong>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>   
                                        <td>
                                            <div style="width: 350px; height: 120px; border: 1px solid; padding-top: 0.1em">
                                                <div style="width: 100%; border-bottom: 1px solid; background: rgb(159, 159, 160); text-align: center; padding-top: 5px; padding-bottom: 5px">
                                                    <strong style="font-size: 14px">Distintions</strong>
                                                </div>
                                                <table style="padding: 5px">
                                                    <tbody>
                                                        <tr>
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);" <?php echo e(distinction($item['resultat']->moyenne, 14, 15) ? 'checked':''); ?>>
                                                                    <span>Tableau d'honneur</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);" <?php echo e(distinction($item['resultat']->moyenne, 15, 16) ? 'checked':''); ?>>
                                                                    <span>Tableau d'honneur + Encouragement</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);" <?php echo e(distinction($item['resultat']->moyenne, 16, 20) ? 'checked':''); ?>>
                                                                    <span>Tableau d'honneur + Félicitation</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);">
                                                                    <span>Réfusé</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                        <td>
                                            <div style="width: 350px; height: 120px; border: 1px solid; padding-top: 0.1em">
                                                <div style="width: 100%; border-bottom: 1px solid; background: rgb(159, 159, 160); text-align: center; padding-top: 5px; padding-bottom: 5px">
                                                    <strong style="font-size: 14px">Sanctions</strong>
                                                </div>
                                                <table style="padding: 5px">
                                                    <tbody>
                                                        <tr style="width:100%">
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);">
                                                                    <span>Avertissement pour travail insuffisant</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr style="width:100%">
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);">
                                                                    <span>Blâme pour travail insuffisant</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr style="width:100%">
                                                            <td  style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);">
                                                                    <span>Avertissement pour mauvaise conduite</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                        <tr style="width:100%">
                                                            <td style="font-size: 14px; width:100%; padding-left: 7px">
                                                                <label style="display: flex; align-items: center;">
                                                                    <input type="checkbox" style="width: 15px; height: 15px; background: none; transform: scale(0.8);">
                                                                    <span>Blâme pour mauvaise conduite</span>
                                                                </label>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div style="margin-top: 20px; margin-bottom:0%">
                            <table style="margin: 0px auto">
                                <tbody>
                                    <tr>
                                        <td>
                                            <div style="width: 500px; height: 150px; border: 1px solid; padding-top: 0.1em">
                                                <div style="width: 100%; border-bottom: 1px solid; background: rgb(159, 159, 160); text-align: center; margin-bottom: 5px; padding: 5px 0px 5px 0px">
                                                    <strong style="font-size: 15px;">Appréciation du conseil de classe</strong>
                                                </div>
                                                <p style="text-align: center; margin:0%; font-size: 15px; padding-top: 10px">
                                                    <i><b><?php echo e($item['student']->classe->type == 'technique' ? appreciationTechnique($item['resultat']->moyenne):appreciationGeneral($item['resultat']->moyenne)); ?></b></i>
                                                </p>
                                                <p style="text-align: center;margin-top:0%; margin-bottom: 10px; font-size: 14px; padding-top: 10px">Professeur Principal</p>
                                                <p style="text-align: center; margin-top: 20px; margin-bottom: 0%; font-size: 14px; padding-top: 20px; font-weight: bold;"><?php echo e($item['profs']); ?></p>
                                            </div>
                                        </td>
                                        <td>
                                            <div style="width: 550px; height: 150px; border: 1px solid; padding-top: 0.1em">
                                                <div style="width: 100%; border-bottom: 1px solid; background: rgb(159, 159, 160); text-align: center; margin-bottom: 5px; padding: 5px 0px 5px 0px"">
                                                    <strong style="font-size: 15px">Visa du Chef d'Etablissement</strong>
                                                </div>
                                                <table style="width: 100%">
                                                    <tbody>
                                                        <tr>
                                                            <td style="width: 75%">
                                                                <p style="text-align: center; margin:0%; font-size: 14px; padding-top: 10px"><?php echo e(ucfirst($item['school']->school_city)); ?>, le <strong><?php echo e(date('d/m/Y', strtotime($item['result_classe']->created_at))); ?></strong></p>
                                                                <p style="text-align: center;margin-top:0%; margin-bottom: 10px; font-size: 14px; padding-top: 10px">Directeur des Etudes</p>
                                                                <p style="text-align: center; margin-top: 20px; margin-bottom: 0%; font-size: 14px; padding-top: 20px; font-weight: bold;"><?php echo e($item['directeur']); ?></p>
                                                            </td>
                                                            <td style="width: 25%">
                                                                <div style="border: 1px solid grey; width: 80%; height: 100px; margin: 0px auto; padding:0%; border-radius: 5px">
                                                                    <img src="<?php echo e(public_path('assets/images/icons8-qr-code-96.png')); ?>" class="m-b-10" alt="Logo établissement" style="width: 105px; height: 100px;">
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </body>
                </section>
            </section>


            <!-- Footer -->
            <footer>
                <i style="text-align: right; float:left; font-size: 10px; margin:0%"><?php echo e($item['school']->school->name_school); ?></i>
                <i style="text-align: center;font-size: 10px; margin:0%"><?php echo e($item['school']->address_email.' | '. $item['school']->phon_school); ?></i>
                <i style="text-align: right; float:right; font-size: 10px; margin:0%"><?php echo e(random_int(5000, 10000).' ~ '.date('Y-m-d H:i:s')); ?></i>
            </footer>
        </div>
        <!-- @end -->
    <?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; ?>
</body>
</html><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\resources\views\pdf\bulletins\bulletin_1.blade.php ENDPATH**/ ?>