<?php $__env->startSection('title'); ?> Salaire <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card'); ?>  <?php $__env->stopSection(); ?>
<?php $__env->startSection('subtitle_card',"Employeur"); ?>


<?php $__env->startSection('content'); ?>
<div class="card">
        <?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-header">
            <h2>Nouvelle fiche salaire</h2>
        </div>
        <div class="card-body">
        <?php echo e(html()->form('POST', url('salaires'))->open()); ?>

            <input type="hidden" name="sonum" value="<?php echo $employeur->id; ?>">
            <input type="hidden" name="benum" value="<?php echo $beneficiaire->id; ?>">
            <?php echo $__env->make("recouvrement.salaires.content", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo e(html()->form()->close()); ?>

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

<?php $__env->startSection('styles'); ?>
    <!-- FancyBox -->
    <link media="all" type="text/css" rel="stylesheet" href="<?php echo e(url('css/jquery.fancybox.css')); ?>">
    <link media="all" type="text/css" rel="stylesheet" href="<?php echo e(url('css/jquery.fancybox-buttons.css')); ?>">
<?php $__env->stopSection(); ?>



<?php $__env->startSection('scripts0'); ?>
    <script src="<?php echo e(url('js/jquery.fancybox.js')); ?>"></script>

    <script type="text/javascript">
        $(function() {
            $("#employeur_nom").autocomplete({
                source: "<?php echo route('autocomplete_employeur'); ?>",
                minLength: 2,
                select: function(event, ui) {
                    $('#sonum').val(ui.item.id);
                    $('#ref_employeur').html(ui.item.id);
                },
                change: function( event, ui ) {
                    var id_nom=ui.item.value.trim();
                    var nom;
                    var t= id_nom.split(/ (.*)/s);;

                    //if(id_nom.length>5) nom=(id_nom.substring(4)).trim();
                    $('#employeur_nom').val(t[1]);
                    $('#ref_employeur').html(ui.item.id);
                    $('#sonum').val(ui.item.id);
                }
            });
            return;
        });
    </script>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts'); ?>
    <?php echo $__env->make("recouvrement.salaires.scripts_salaires", \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/recouvrement/salaires/create.blade.php ENDPATH**/ ?>