<!DOCTYPE html>
<html lang="en">
<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">
    <title>Program Devoir - <?php echo e($classe['libelle']); ?></title>
</head>
<style type="text/css">
    @page {
        margin: 20px 10px 20px 10px; /* Supprime toutes les marges */
    }

    .watermark {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-50deg);
        font-size: 100px;
        color: rgba(0, 0, 0, 0.05);
        z-index: -1;
        white-space: nowrap;
        pointer-events: none;
        text-transform: uppercase;
    }

    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>
    <div class="watermark">Classe : <?php echo e($classe->libelle); ?></div>
    <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($classe->schoolYear->school_year); ?></b>
                        </div>
                    </td>
                    </tr>
                </tbody>
                </table>
            </td>
            </tr>
        </tbody>
        </table>
    </header>
    <section style="margin-top: 5%;">
        <div style="margin: 1px auto; width: 100%; text-align:center;">
            <strong style="font-size: 25px; height: 100px; line-height: 1.3; text-decoration: underline;">PROGRAMME DE DEVOIRS <?php echo e(strtoUpper($cutting->cutting->libelle)); ?></strong>
        </div>

        <div style="margin-top: 5%">
            <table border="2" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: 90%; margin: 0px auto; border: 1px solid #2c2d2e;">
                <thead>
                    <tr>
                        <th scope="col" class="text-center" style="width: 16%; padding: 17px">MATIERES</th>
                        <th scope="col" class="text-center" style="width: 42%; padding: 17px">MATIN</th>
                        <th scope="col" class="text-center" style="width: 42%; padding: 17px">APRES MIDI</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $matters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <th scope="col" style="margin:0%; padding:0%; text-align: left">
                            <span style="margin-left: 5px"><?php echo e($matter['libelle']); ?></span>
                        </th>
                        <td style="margin:<?php echo e(count($matter['martins']) ? '0%':''); ?>; padding:<?php echo e(count($matter['martins']) ? '0%':'20px'); ?>">
                            <?php if(count($matter['martins'])): ?>
                            <table border="1" cellpadding="1" cellspacing="0" style="border-collapse: collapse; width: 100%; font-size: 13px; margin:0%">
                                <tbody style="margin:0%; padding:0%">
                                    <tr style="margin:0%;">
                                        <?php $__currentLoopData = $matter['martins']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <td style="margin: 0%; text-align:center;">
                                                <?php echo e(ucwords($item['jour'])); ?><br> 
                                                <strong><?php echo e(date('d/m/Y', strtotime($item['date']))); ?></strong><br>
                                                <?php echo e($item['debut']); ?> - <?php echo e($item['fins']); ?>

                                            </td>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tr>
                                </tbody>
                            </table>
                            <?php endif; ?>
                        </td>
                        <td style="margin:<?php echo e(count($matter['soirs']) ? '0%':''); ?>; padding:<?php echo e(count($matter['soirs']) ? '0%':'20px'); ?>">
                            <?php if(count($matter['soirs'])): ?>
                            <table border="1" cellpadding="1" cellspacing="0" style="border-collapse: collapse; width: 100%; font-size: 13px; margin:0%">
                                <tbody style="margin:0%; padding:0%">
                                    <tr style="margin:0%;">
                                        <?php $__currentLoopData = $matter['soirs']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <td style="margin: 0%; text-align:center;">
                                                <?php echo e(ucwords($item['jour'])); ?> <br> 
                                                <strong><?php echo e(date('d/m/Y', strtotime($item['date']))); ?></strong><br>
                                                <?php echo e($item['debut']); ?> - <?php echo e($item['fins']); ?>

                                            </td>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tr>
                                </tbody>
                            </table>
                            <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </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($classe->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 /home/educasnsa/public_html/neuroschool/resources/views/pdf/program_devoir.blade.php ENDPATH**/ ?>