
<?php $__env->startSection('title'); ?> Encaissement <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card'); ?>  <?php $__env->stopSection(); ?>

 
<?php $__env->startSection('title'); ?> Cotisation N°<?php echo $cotisation->id; ?> <?php $__env->stopSection(); ?>
 
<?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 bg-info">
            <h2>Encaissement de la Cotisation N°<?php echo $cotisation->id; ?></h2>
        </div>
        <div class="card-body">
            <?php echo e(html()->modelForm($cotisation, 'PUT', url('cotisations_encaiss/' . $cotisation->id))->open()); ?>

                <?php echo e(html()->hidden('sonum',$cotisation->sonum)); ?>

                <?php echo e(html()->hidden('origine',$origine)); ?>


                <div class="form-group row">
                    <div class="col-md-10">
                        <?php echo html()->label( 'Employeur','sonum'); ?>

                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text" id="ref_employeur"><?php echo $cotisation->sonum; ?></span>
                            </div>
                            <?php echo html()->text('sonum', $cotisation->nom_employeur)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                        </div>
                    </div>

                    <div class="col-md-2">
                        <?php echo html()->label( 'Date d\'entrée','date'); ?>

                        <div class='input-group date' id='datepicker_date_med'>
                            <?php echo html()->text('date_med', $cotisation->date)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                        </div>
                    </div>
                </div>

                <div class="row form-group">
                    <div class="col-md-2">
                        <?php echo html()->label( 'Exercice','exercice'); ?>

                        <?php echo html()->text('exercice', $cotisation->exercice)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                    </div>
                    <div class="col-md-1">
                        <?php echo html()->label( 'Type','type_cotis'); ?>

                        <?php echo html()->select('type_cotis',$types_cotisation,$cotisation->type_cotis)->attributes(['readonly','class' => 'form-control']); ?>

                    </div>
                    <div class="col-md-2">
                        <?php echo html()->label( 'Nb mois','nbmois'); ?>

                        <?php echo html()->text('nbmois', $cotisation->nbmois)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                    </div>
                    <div class="col-md-2">
                        <?php echo html()->label( 'Mois de départ','mois'); ?>

                        <div class='input-group date' id='datepicker_date_med'>
                            <?php echo html()->text('mois', $cotisation->mois)->attributes(['readonly', 'class' => 'form-control']); ?>

                        </div>
                    </div>
                    <div class="col-md-3">
                        <?php echo html()->label( 'Nb salariés','nbsal'); ?>

                        <?php echo html()->text('nbsal', $cotisation->nbsal)->attributes(['readonly', 'class' => 'form-control']); ?>

                    </div>
                </div>

                <div class="row form-group">
                    <div class="col-md-3">
                        <?php echo html()->label( 'N°Bordereau','bdx'); ?>

                        <?php echo html()->text('bdx', $cotisation->bdx)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                    </div>

                    <div class="col-md-3">
                        <?php echo html()->label( 'N° Bordereau privé','bdx_prive'); ?>

                        <?php echo html()->text('bdx_prive', $cotisation->bdx_prive)->placeholder("")->attributes(['readonly', 'class' => 'form-control']); ?>

                    </div>
                    <div class="col-md-5">
                        <?php echo html()->label( 'Observations','observation'); ?>

                        <?php echo html()->text('observation', $cotisation->observation)->attributes(['readonly', 'class' => 'form-control', 'rows'=>'2']); ?>

                    </div>
                </div>

                <div class='col-md-8 callout callout-success'>
                    <div class="row form-group">
                        <div class="col-md-4">
                            <?php echo html()->label( 'Date d\'encaissement','encais_date'); ?>

                            <div class='input-group date' id='datepicker_encais_date'>
                                <?php echo html()->text('encais_date', $cotisation->encais_date)->placeholder('Date')->attributes(['class' => 'form-control']); ?>

                                <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <?php echo html()->label( 'Compte','encais_compte'); ?>

                            <?php echo html()->select('encais_compte',App\Models\MyApp::COMPTES_ENCAISSEMENT,null)->placeholder('A définir')->attributes(['class' => 'form-control']); ?>

                        </div>
                    </div>
                </div>

                <legend class="h4">Cotisation</legend>
                <div class='col-md-8 callout callout-danger'>
                    <div class="row form-group">
                        <div class="col-md-3">
                            <?php echo html()->label('Compte','compte'); ?>

                            <?php echo html()->text('compte', null)->attributes(['readonly','class' => 'form-control']); ?>

                        </div>
                        <div class="col-md-4">
                            <?php echo html()->label('Type de paiement','typepmt'); ?>

                            <?php echo html()->text('typepmt', $cotisation->typepmt)->attributes(['readonly','class' => 'form-control']); ?>

                       </div>
                        <div class="col-md-4">
                            <?php echo html()->label( 'Date de dépôt','date_depot'); ?>

                            <?php echo html()->text('date_depot', $cotisation->date_depot)->attributes(['readonly','class' => 'form-control']); ?>

                        </div>
                    </div>
                </div>

                <div class="col-md-8 callout callout-warning">
                    <div class="row form-group">
                        <div class="col-md-2">
                            <?php echo html()->label( 'Assiette','assiette'); ?>

                        </div>
                        <div class="col-md-5" >
                            <?php echo html()->text('assiette', null)->attributes(['readonly','class' => 'form-control','style'=>'text-align:right']); ?> 
                        </div>
                        <div class="col-md-3">
                            <?php echo html()->text('PrcTot', null)->attributes(['class' => 'form-control','readonly','style'=>'text-align:center','id'=>'PrcTot']); ?> 
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-md-2">
                            <?php echo html()->label('CLR','clr'); ?>

                        </div>
                        <div class="col-md-5">
                            <?php echo html()->text('clr', null)->attributes(['readonly', 'class' => 'form-control','style'=>'text-align:right']); ?> 
                        </div>
                        <div class="col-md-3">
                            <?php echo html()->text('PrcCLR', null)->attributes(['class' => 'form-control','readonly','style'=>'text-align:center']); ?> 
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-md-2">
                            <?php echo html()->label( 'CCPF','ccpf'); ?>

                        </div>
                        <div class="col-md-5">
                            <?php echo html()->text('ccpf', null)->attributes(['readonly', 'class' => 'form-control','style'=>'text-align:right']); ?> 
                        </div>
                        <div class="col-md-3">
                            <?php echo html()->text('PrcCCPF', null)->attributes(['class' => 'form-control','readonly','style'=>'text-align:center']); ?> 
                        </div>
                    </div>
                </div>

                <div class="col-md-8 callout callout-info">
                    <div class="row form-group">
                        <div class="col-md-2">
                            <?php echo html()->label('Total','total'); ?>

                        </div>
                        <div class="col-md-5" >
                            <?php echo html()->text('total', null)->attributes(['class' => 'form-control','style'=>'text-align:right','readonly']); ?> 
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-md-2">
                            <?php echo html()->label( 'Règlement','credit'); ?>

                        </div>
                        <div class="col-md-5" >
                            <?php echo html()->text('credit', null)->attributes(['class' => 'form-control','style'=>'text-align:right']); ?> 
                        </div>
                    </div>
                </div>


                <div class='row form-group'>
                    <?php echo html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

                </div>
            <?php echo e(html()->form()->close()); ?>

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

<?php $__env->startSection('scripts0'); ?>
    <script type="text/javascript">
        $(function () {
            $('#datepicker_encais_date').datepicker({
                format: "dd/mm/yyyy",
                language: "fr",
                autoclose: true
            });
        });
    </script>
<?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/cotisations/encaissement.blade.php ENDPATH**/ ?>