<?php $__env->startSection('title', 'Add time slot'); ?>
<?php $__env->startSection('link'); ?>
<style>
    table tr th{ border: none; }
    table tr td{ border: none; }
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="pcoded-inner-content">
    <?php echo $__env->make('includes._alert', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <div class="main-body">
        <div class="page-wrapper">
            <div class="page-body">
                <div class="card">
                    <div class="card-header mb-0 pb-0">
                        <div class="d-flex justify-content-between">                        
                            <h4>Horaires</h4>
                            <span class="form-control-variant">Les champ avec asterisk (<code>*</code>) sont obligatoires.</span>
                            <span>
                                <a href="<?php echo e(route('time_slot.index')); ?>" class="btn btn-inverse btn-outline-inverse  btn-sm py-1" title="Return Back"><i class="fas fa-reply mx-0"></i></a>
                            </span>
                        </div>
                    </div>
                    <hr class="my-0 mx-3">
                    <div class="card-block mt-3">
                        <form action="<?php echo e(route('time_slot.store')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <div class="row">
                                <div class="col-md-6">
                                    <strong class="ml-2" style="font-size: 17px"><u>Matin</u></strong>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php for($i = 0; $i < $nbre; $i++ ): ?>
                                    <table class="table" style="border: none">
                                        <thead>
                                            <tr style="border:none">
                                                <th colspan="2" style="border:none"><?php echo e($i+1); ?><?php echo e($i+1 == 1 ? 'ère':'ème'); ?> Heure :</td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr style="border:none">
                                                <th style="border:none; width:10%"></th>
                                                <td class="py-0" style="border:none; width:40%">
                                                    <span class="d-flex">
                                                        <label for="mtinDbt<?php echo e($i+1); ?>" class="mr-1 mt-2">Debut :</label>
                                                        <input type="time" name="mtDbts[]" id="mtinDbt<?php echo e($i+1); ?>" class="form-control w-50" value="<?php echo e($morning[$i]['debut'] ?? null); ?>">
                                                    </span>
                                                </td>
                                                <td class="py-0" style="border:none; width:40%">
                                                    <span class="d-flex">
                                                        <label for="mtinFin<?php echo e($i+1); ?>" class="mr-1 mt-2">Fin :</label>
                                                        <input type="time" name="mtFns[]" id="mtinFin<?php echo e($i+1); ?>" class="form-control w-50" value="<?php echo e($morning[$i]['fin'] ?? null); ?>">
                                                    </span>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <?php endfor; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </div>
                                <div class="col-md-6">
                                    <strong class="ml-2" style="font-size: 17px"><u>Après Midi</u></strong>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php for($i = 0; $i < $nbre; $i++ ): ?>
                                    <table class="table" style="border: none">
                                        <thead>
                                            <tr style="border:none">
                                                <th colspan="2" style="border:none"><?php echo e($i+1); ?><?php echo e($i+1 == 1 ? 'ère':'ème'); ?> Heure :</td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr style="border:none">
                                                <th style="border:none; width:10%"></th>
                                                <td class="py-0" style="border:none; width:40%">
                                                    <span class="d-flex">
                                                        <label for="mdiDbt<?php echo e($i+1); ?>" class="mr-1 mt-2">Debut :</label>
                                                        <input type="time" name="mdDbts[]" id="mdiDbt<?php echo e($i+1); ?>" class="form-control w-50" value="<?php echo e($after[$i]['debut'] ?? null); ?>">
                                                    </span>
                                                </td>
                                                <td class="py-0" style="border:none; width:40%">
                                                    <span class="d-flex">
                                                        <label for="mdFns<?php echo e($i+1); ?>" class="mr-1 mt-2">Fin :</label>
                                                        <input type="time" name="mdFns[]" id="mdFns<?php echo e($i+1); ?>" class="form-control w-50" value="<?php echo e($after[$i]['fin'] ?? null); ?>">
                                                    </span>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <?php endfor; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </div>
                            </div>
                            <hr class="text-center">
                            <div class="text-center">
                                <button type="submit" class="btn btn-inverse btn-outline-inverse py-2"> <i class="fas fa-check-circle"></i> Valider les informations</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('assets/js/pcoded.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vartical-layout.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery.mCustomScrollbar.concat.min.js')); ?>"></script>
<script>
    $(document).ready(function(){

    })
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\EDUCAS\Desktop\App\V4_001\resources\views/pages/time_slot/create.blade.php ENDPATH**/ ?>