<?php echo $__env->make('takaback.layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<style>
    body {
        font-family: 'Arial', sans-serif;
        background-color: #f8f9fa;
        color: #495057;
        margin: 0;
        padding: 0;
    }

    .inner-page {
        background-color: #fff;
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
        max-width: 1000px;
    }

    .company-icon,
    .job-icon {
        color: #28b947;
        font-size: 1.5em;
        margin-right: 10px;
    }

    h1 {
        color: #28b947;
        text-align: center;
        margin-bottom: 30px;
    }

    .job-details {
        font-size: 1.0em;
        line-height: 1.6;
        color: #6c757d;
    }

    .apply-btn {
        display: inline-block;
        padding: 10px 20px;
        color: #fff;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        margin-top: 30px;
        transition: background-color 0.3s;
    }
</style>
<main id="main">
    <!-- ======= Breadcrumbs Section ======= -->
    <section class="">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">

            </div>
        </div>
    </section>
    <!-- End Breadcrumbs Section -->
    <section class="inner-page">
        <div class="container">
            <h1 class="mt-4 mb-4">
                <i class="fas fa-file-alt"></i> Formulaire de candidature
            </h1>
            <form action="<?php echo e(route('candidatureOffre.store')); ?>" method="POST" enctype="multipart/form-data">
                <div class="job-details">
                <?php echo csrf_field(); ?>
                     
                    <?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="" id="nomCand"
                                    placeholder="Nom" name="nomCand" style=" height:43px;" 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="" id="prenomsCand"
                                    name="prenomsCand" style=" height:43px;" placeholder="Prénom" 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="" id="email"
                                    placeholder="Email" name="email" style=" height:43px;" 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="" id="telephone"
                                    name="telephone" style=" height:43px;" placeholder="Téléphone" 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;" placeholder="" 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>
                <button class="apply-btn btn btn-success" type="submit"><span>Postuler</span></button>
            </form>

        </div>
    </section>

</main>
<!-- End #main -->
<?php echo $__env->make('takaback.layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php /**PATH D:\takaback\resources\views/takaback/question.blade.php ENDPATH**/ ?>