
 
<?php $__env->startSection('title'); ?> Mise à jour d'un controle <?php $__env->stopSection(); ?>
 
<?php $__env->startSection('content'); ?>
 
<div class="col-lg-max col-lg-offset-1">
 
    <?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; ?>
 
    <h1><i class='fa fa-banque'></i> Mise à jour d'un controle</h1>
 
    <?php echo Form::model($controle, ['controle' => 'form'
        , 'url' => '/recouvrement/controles/' . $controle->id
        , 'method' => 'PUT', 'class' => 'form-horizontal']); ?>


    <div class="tab-content">

        <div class="form-group">
            <div class="col-md-4">
                <?php echo Form::label('sonum', 'Employeur'); ?>

                <div class="input-group">
                    <div class="input-group-addon" id="ref_employeur"><?php echo $controle->sonum; ?></div>
                    <?php echo Form::select('sonum',$liste_employeur,$controle->sonum,
                        [
                            'class' => 'selectpicker show-tick',
                            'id' => 'sonum',
                            'data-width' => "100%",
                        ]
                        ); ?>

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

        <div class="form-group">
            <div class="col-md-4">
                <?php echo Form::label('date_cont', 'Date du contrôle'); ?>

                <div class="input-group">
                    <div class='input-group date' id='datepicker_date_cont'>
                            <?php echo Form::text('date_cont', $controle->date_cont, ['placeholder' => 'Date du contrôle', 'class' => 'form-control']); ?>

                        <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>

                        <script type="text/javascript">
                            $(function () {
                                $('#datepicker_date_cont').datepicker({
                                    format: "dd/mm/yyyy",
                                    language: "fr",
                                    autoclose: true
                                });
                            });
                        </script>
                    </div>
                </div>
            </div>
        </div>



        <div class="form-group">
            <div class="col-md-3">
                    <?php echo Form::label('agent1', 'Agent1'); ?>

                    <?php echo Form::text('agent1', null, ['placeholder' => 'Agent1','class' => 'form-control']); ?>

            </div>

            <div class="col-md-3">
                    <?php echo Form::label('agent2', 'Agent2'); ?>

                    <?php echo Form::text('agent2', null, ['placeholder' => 'Agent2','class' => 'form-control']); ?>

            </div>
        </div>



        <div class="form-group">
            <div class="col-md-4">
                <?php echo Form::label('date_valid', 'Date de validation'); ?>

                <div class="input-group">
                    <div class='input-group date' id='datepicker_date_valid'>
                            <?php echo Form::text('date_valid', $controle->date_valid, ['placeholder' => 'Date de validation', 'class' => 'form-control']); ?>

                        <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>

                        <script type="text/javascript">
                            $(function () {
                                $('#datepicker_date_valid').datepicker({
                                    format: "dd/mm/yyyy",
                                    language: "fr",
                                    autoclose: true
                                });
                            });
                        </script>
                    </div>
                </div>
            </div>
        </div>


        <div class='form-group'>
            <div class="col-md-6">
            <?php echo Form::label('observations', 'Observations'); ?>

            <?php echo Form::textarea('observations', null, ['placeholder' => 'Observations', 'class' => 'form-control', 'rows'=>'3']); ?>

            </div>
        </div>


    <div class="col-sm-9">
    <?php echo Form::submit('Enregistrer', ['class' => 'btn btn-primary']); ?>

    </div>


    <?php echo Form::close(); ?>

    </div>
 
</div>
 

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre\resources\views/recouvrement/controles/edit.blade.php ENDPATH**/ ?>