<?php echo $__env->make('projets.index.layouts.onglets.commons.button-ajouter-projet', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<div>
    <div class="row mt-2 mb-2">
        <div class="col-12">
            <h5>Planning des projets</h5><br>
        </div>
    </div>
    <?php if(sizeof($planning) > 0): ?>
        <div class="planning"></div>
    <?php else: ?>
        <div class="pt-2">
            <h4>Pas de données disponible.</h4>
        </div>
    <?php endif; ?>
</div>

<script>
    $(function() {
        $('.planning').gantt({
            source: <?php echo json_encode($planning); ?>,
            navigate: 'scroll',
            scale: 'weeks',
            maxScale: 'months',
            minScale: 'days',
            itemsPerPage: <?php echo e(sizeof($planning)); ?>,
            scrollToToday: false,
            dow: ['D','L','Ma','Me','J','V','S']
        });
    });
</script>
<?php /**PATH /var/www/html/resources/views/projets/index/layouts/onglets/planning.blade.php ENDPATH**/ ?>