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


<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="col-lg-max col-lg-offset-1 container-fluid">
            <div class="card-header bg-info h4">
                Ajouter un document - Controle N°<?php echo $controle->id; ?>

            </div>
            <div class="card-body">
                <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; ?>
                    
                 
                    <?php echo e(html()->modelForm($controle, 'POST', url('uploadfile/'))->attributes(['files'=>'true','enctype' => 'multipart/form-data','class' => 'form-horizontal'])->open()); ?>

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

                        <div class="row form-group">
                            <div class="col-md-5">
                                <?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 $controle->sonum; ?></span>
                                    </div>
                                    <?php echo html()->text('sonum', $controle->nom_employeur)->attributes(['disabled' => 'true','class' => 'form-control']); ?>

                                </div>
                            </div>
                            <div class="col-md-2">
                                <?php echo html()->label('Date du contrôle','date_cont'); ?>

                                <div class='input-group date' id='datepicker_date_med'>
                                    <?php echo html()->text('date_cont', $controle->date)->attributes(['disabled' => 'true','class' => 'form-control']); ?>

                                </div>
                            </div>
                        </div>
                        <div class='form-group'>
                            <div class="col-md-8">
                                <?php echo e(html()->label( 'Fichier','Fichier')); ?>

                                <?php echo e(html()->file('fichier')); ?>

                            </div>
                        </div>
                        <div class="col-sm-9">
                            <div class='form-group'><br/>
                                <?php echo html()->button('Télécharger le fichier')->value('Télécharger')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

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

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