<?php $__env->startSection('navbar'); ?>
<!-- [ Main Content ] start -->
<div class="pcoded-main-container">
    <div class="pcoded-content">
        <!-- [ breadcrumb ] start -->
        <?php echo $__env->make('sweetalert::alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="page-header">
            <div class="page-block">
                <div class="row align-items-center">
                    <div class="col-md-12">
                        <div class="page-header-title">
                            <h5 class="m-b-10">Formulaire de candidature</h5>
                        </div>
                        <ul class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>"><i class="feather icon-home"></i></a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('Offre+Client.index')); ?>">offre</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
        <div class="row">
            <!-- [ sample-page ] start -->

            <div class="col-sm-12">
                <div class="card">

                    <div class="card-header">
                        <h5>Formulaire de candidature</h5>
                        <div class="card-header-right">
                            <div class="btn-group card-option">
                                <button type="button" class="btn dropdown-toggle btn-icon" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    <i class="feather icon-more-horizontal"></i>
                                </button>
                                <ul class="list-unstyled card-option dropdown-menu dropdown-menu-right">
                                    <li class="dropdown-item minimize-card"><a href="#!"><span><i class="feather icon-minus"></i> collapse</span><span style="display:none"><i class="feather icon-plus"></i> expand</span></a></li>
                                    <li class="dropdown-item reload-card"><a href="#!"><i class="feather icon-refresh-cw"></i> reload</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <form action="<?php echo e(route('candidatureOffreClient.store')); ?>" method="POST"  enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                            <div class="job-details">

                                <?php if(isset($result[0]->idOffre)): ?>
                                  <?php $__currentLoopData = $result; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="row">
                                        <div class="col-sm">
                                            <div class="form-group">
                                                <label class="control-label mb-3" for="question"><?php echo e($key->question); ?>

                                                </label>
                                                <input type="hidden" value="<?php echo e($key->question); ?>"
                                                    name="questions[<?php echo e($index); ?>]" />
                                                    <input type="hidden" value="<?php echo e($key->titreOffre); ?>"
                                                    name="offre" />
                                                <select class="form-control mb-4" id="offre" value=""
                                                    name="reponses[<?php echo e($index); ?>]" style="height:43px;" required>
                                                    <option value="">Choisir une réponse</option>

                                                   <?php if(isset($key->reponse1)): ?>
                                                        <option value="<?php echo e($key->reponse1); ?>,<?php echo e($key->point1); ?>" required><?php echo e($key->reponse1); ?></option>
                                                    <?php else: ?>

                                                   <?php endif; ?>
                                                   <?php if(isset($key->reponse2)): ?>
                                                        <option value="<?php echo e($key->reponse2); ?>,<?php echo e($key->point2); ?>"required><?php echo e($key->reponse2); ?></option>
                                                   <?php else: ?>

                                                   <?php endif; ?>

                                                   <?php if(isset($key->reponse3)): ?>
                                                        <option value="<?php echo e($key->reponse3); ?>,<?php echo e($key->point3); ?>" required><?php echo e($key->reponse3); ?></option>
                                                    <?php else: ?>
                                                        <!-- Votre contenu pour le cas else va ici -->
                                                    <?php endif; ?>

                                                    <?php if(isset($key->reponse4)): ?>
                                                        <option value="<?php echo e($key->reponse4); ?>,<?php echo e($key->point4); ?>" required><?php echo e($key->reponse4); ?></option>
                                                    <?php else: ?>
                                                        <!-- Votre contenu pour le cas else va ici -->
                                                    <?php endif; ?>

                                                   <?php if(isset($key->reponse5)): ?>
                                                        <option value="<?php echo e($key->reponse5); ?>,<?php echo e($key->point5); ?>" required><?php echo e($key->reponse5); ?></option>
                                                    <?php else: ?>
                                                        <!-- Votre contenu pour le cas else va ici -->
                                                    <?php endif; ?>

                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                <?php endif; ?>
                                <div class="row ">

                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <input type="text" class="form-control" value="<?php echo e(auth()->user()->name); ?>" id="nomCand"
                                                placeholder="Nom" name="nomCand" style=" height:43px;" readonly required />
                                            <!--input type="hidden" class="form-control" id="reference" name="codeProg"
                                            required /-->
                                        </div>
                                    </div>
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <input type="text" class="form-control" value="<?php echo e(auth()->user()->first_name); ?>" id="prenomsCand"
                                                name="prenomsCand" style=" height:43px;" placeholder="Prénom" readonly required />
                                        </div>
                                    </div>
                                </div>
                                <div class="row ">
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <input type="email" class="form-control" value="<?php echo e(auth()->user()->email); ?>" id="email"
                                                placeholder="Email" name="email"  style=" height:43px;" readonly required />
                                            <!--input type="hidden" class="form-control" id="reference" name="codeProg"
                                            required /-->
                                        </div>
                                    </div>
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <input type="text" class="form-control" value="<?php echo e(auth()->user()->telephone); ?>" id="telephone"
                                                name="telephone" style=" height:43px;" placeholder="Téléphone" readonly required />
                                        </div>
                                    </div>
                                </div>
                                <div class="row  ">
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <select class="form-control" id="nomPays_id" value="" name="nomPays_id"
                                                style=" height:43px;" required>
                                                <option selected>Pays de résidence</option>
                                                <?php $__currentLoopData = $pays; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->nomPays); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <select class="form-control" id="nomDiplome_id" value="" name="nomDiplome_id"
                                                style=" height:43px;" required>
                                                <option selected>Diplôme</option>
                                                <?php $__currentLoopData = $diplome; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->nomDiplome); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row ">
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <select class="form-control" id="nomEtude_id" value="" name="nomEtude_id"
                                                style=" height:43px;" required>
                                                <option selected>Domaine d'étude</option>
                                                <?php $__currentLoopData = $etude; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->nomEtude); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <select class="form-control" id="nomActivite_id" value=""
                                                name="nomActivite_id" style=" height:43px;" required>
                                                <option selected>Domaine d'activité</option>
                                                <?php $__currentLoopData = $activite; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->nomActivite); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row  mb-5">
                                    <div class="col-sm-6 mt-4">
                                        <div class="form-group">
                                            <label for="">Nombre d'année(s) d'expérience</label>
                                            <input type="number" class="form-control" style=" height:43px;" name="exp_years"
                                                min="0" step="1" placeholder="Nombre d'année d'expérience" required>
                                        </div>
                                    </div>
                                    <div class="col-sm mt-4">
                                        <div class="form-group">
                                            <label for="">Curriculum Vitae</label>
                                            <input type="file" class="form-control" name="curriculum" style=" height:43px;"
                                                required />
                                        </div>
                                    </div>

                                </div>
                            </div>
                            <div class="mb-3 mt-2">
                                <label for="adresse" class="form-label"><strong>GOOGLE CAPTCHA</strong></label>
                                  <?php echo htmlFormSnippet(); ?>

                            </div>
                            <div class="text-center">
                                <button class="apply-btn btn btn-primary" type="submit"><span><i class="feather mr-2 icon-thumbs-up"></i>Postuler</span></button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- [ Main Content ] end -->
    </div>
</div>
<!-- [ Main Content ] end -->
<?php $__env->stopSection(); ?>


<?php echo $__env->make('Client.layouts.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/p59qce1cziqc/public_html/takaback.com/resources/views/Client/questionnaire.blade.php ENDPATH**/ ?>