<?php
    header('cache-Control: no-store, no-cache, must-revalidate');
    header('cache-Control: post-check=0, pre-check=0', false);
    header('Pragma: no-cache');
    header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
?>

<!DOCTYPE html>
<html id="html" lang="<?php echo e(app()->getLocale()); ?>">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
        integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="/css/connexion.css">
    <link rel="stylesheet" href="/css/style.css">
    <title>UPSchool</title>
    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
        crossorigin="anonymous"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/cleave.js@1.6.0/dist/cleave.min.js"
        integrity="sha256-frGUwmSN4CLLjyk5m59ECdXsDMUxTW5O6hdceNHVCJo=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/cleave.js@1.6.0/dist/addons/cleave-phone.sn.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.3/additional-methods.min.js"
        integrity="sha512-XZEy8UQ9rngkxQVugAdOuBRDmJ5N4vCuNXCh8KlniZgDKTvf7zl75QBtaVG1lEhMFe2a2DuA22nZYY+qsI2/xA=="
        crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <link rel="icon" href="/img/upschool-favicon.png">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
    <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
    <link rel="manifest" href="/manifest.json">
    <style>
        #loader {
            position: fixed;
            width: 300px;
            height: 300px;
            top: 30%;
            left: 40%;
            z-index: 999;
        }

        @media  only screen and (max-width: 600px) {
            #loader {
                left: 30px;
            }
        }
    </style>
</head>
</head>

<body class="has-navbar-fixed-top hero is-fullheight is-block">
    <!-- navigation =========================================================== -->
    <?php echo $__env->make('/partials/navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- end navigation =========================================================== -->

    <!-- Modal inscription ============================================= -->
    <?php echo $__env->make('/partials/modalInscription', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- end inscription =========================================================== -->
    <!-- Modal Promo ============================================= -->
    <?php echo $__env->make('/partials/modalPromo', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- end Promo =========================================================== -->

    <lottie-player id="loader" class="is-hidden" src="https://assets1.lottiefiles.com/packages/lf20_aidqj9aw.json"
        background="transparent" speed="1" style="" loop autoplay></lottie-player>

    <div>
        <div x-data="{ show: true }" x-init="setTimeout(() => show = false, 4000)" x-show="show" style="position: absolute;">
            <?php echo $__env->make('flash::message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <?php echo $__env->yieldContent('contenu'); ?>
    </div>

    <?php if(auth()->user()->administration == 1 || auth()->user()->administrateur == 1): ?>
        <div id="btn-set-env" class="dropdown is-up" style="position: fixed; bottom: 0; right: 2px">
            <div class="dropdown-trigger">
                <button
                    onclick="$('#btn-set-env').hasClass('is-active') ? $('#btn-set-env').removeClass('is-active') : $('#btn-set-env').addClass('is-active')"
                    class="button" aria-haspopup="true" aria-controls="dropdown-menu">
                    <span>Année Scolaire</span>
                    <span class="icon is-small">
                        <i class="fas fa-angle-up" aria-hidden="true"></i>
                    </span>
                </button>
            </div>
            <div class="dropdown-menu" id="dropdown-menu" role="menu">
                <div class="dropdown-content">
                    <div style="max-height: 10rem; overflow: scroll">
                        <?php $__currentLoopData = $promos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <form action="<?php echo e(route('setSchoolYearValue.post')); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <input name="newYear" class="is-hidden" type="text" value="<?php echo e($promo->libelle); ?>">
                                <button style="border: 0" type="submit"
                                    class="dropdown-item button <?php echo e($promo->libelle == auth()->user()->current_year ? 'is-active' : ''); ?>">
                                    <?php echo e($promo->libelle); ?>

                                </button>
                            </form>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <?php if(auth()->user()->administrateur == 1): ?>
                        <hr class="dropdown-divider" />
                        <button style="border: 0" class="dropdown-item button"
                            onclick="openForm('modalFormPromo')">Nouvelle</button>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    <?php endif; ?>

    <?php echo $__env->make('/partials/inscriptionJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/promoJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <script src="/js/script.js"></script>
</body>

</html>
<?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views/layout.blade.php ENDPATH**/ ?>