<?php $__env->startSection('title'); ?> Enfant <?php $__env->stopSection(); ?>
<?php if(!$beneficiaire): ?>
    <?php $__env->startSection('title_card'); ?> Nouvelle fiche Enfant <?php $__env->stopSection(); ?>
<?php endif; ?>
<?php $__env->startSection('content'); ?>
    <?php if(Session::has('message')): ?>
        <div class="alert alert-success"><?php echo e(Session::get('message')); ?></div>
        <script>
            parent.location.reload();
            parent.jQuery.fancybox.close();
        </script>
    <?php else: ?>
        <?php if($errors): ?>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class='bg-danger alert'><?php echo $error; ?></div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
        <div class="card card-warning">
            <?php if($beneficiaire): ?><h2 class="card-header">Nouvelle fiche Enfant</h2><?php endif; ?>
            <div class='card-body'>
                <?php echo e(html()->form('POST', url('enfants'))->open()); ?>

                    <input type="hidden" name="benef_type" value="<?php echo e($benef_type); ?>">
                    <input type="hidden" name="mode_frame" value="<?php echo e(((isset($beneficiaire)&&($beneficiaire))?true:false)); ?>">
                    <?php echo $__env->make("tiers.enfants.content", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php echo e(html()->form()->close()); ?>

            </div>
        </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts0'); ?>
    <?php echo $__env->make('tiers.enfants.scripts_enfant', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.dash', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/tiers/enfants/create.blade.php ENDPATH**/ ?>