<style>
    .hide-box {
        display: none;
    }

    .required:after {
    content:" *";
    color: red;
  }
</style>

<link rel="stylesheet" href="<?php echo e(asset('assets/node_modules/multiselect/css/multi-select.css')); ?>">
<div class="modal-header">
    <h4 class="modal-title"><i class="icon-plus"></i> <?php echo app('translator')->get('modules.front.jobAlert'); ?></h4>
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
</div>
<div class="modal-body">
   
    <form id="createJobAlert">
        <?php echo e(csrf_field()); ?>

       
            <div class="row">
                <div class="col-md-12 ">
                    <div class="form-group">
                        <label class="required"><?php echo app('translator')->get('menu.jobCategory'); ?></label>
                        <select class=" select2 form-control select2-multiple" name="jobCategory[]" id="jobCategory" multiple="multiple"> 
                       <?php $__currentLoopData = $jobCategorys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                           <option value="<?php echo e($jobCategory->id); ?>"><?php echo e(ucfirst($jobCategory->name)); ?></option>
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                         </div>
                    </div>
                <div class="col-md-12 ">
                    <div class="form-group">
                        <label class="required"><?php echo app('translator')->get('app.location'); ?></label>
                        <select name="location[]" class="select2 form-control select2-multiple" id="location" placeholder="<?php echo app('translator')->get('app.location'); ?>" multiple="multiple">
                                
                            <?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($location->id); ?>"><?php echo e(ucfirst($location->location)); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label><?php echo app('translator')->get('modules.jobs.workExperience'); ?></label>
                            <select name="workExperience" id="workExperience" class="form-control">
                                <option value="">--</option>
                                <?php $__currentLoopData = $workExperiences; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $workExperience): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($workExperience->id); ?>"><?php echo e(ucfirst($workExperience->work_experience)); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label><?php echo app('translator')->get('modules.jobs.jobType'); ?></label>
                            <select name="jobType" id="jobType" class="form-control">
                                <option value="">--</option>
                                <?php $__currentLoopData = $jobTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($jobType->id); ?>"><?php echo e(ucfirst($jobType->job_type)); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-8">
                        <div class="form-group">
                            <label class="required"><?php echo app('translator')->get('app.email'); ?></label>
                            <input type="email" name="email" class="form-control" value="">
                        </div>
                    </div>
            </div>
        <div class="text-center">
            <button type="button" id="save-job-alert" class="btn btn-success "> <i class="fa fa-check"></i> <?php echo app('translator')->get('app.submit'); ?></button>
        </div>
    </form>
<script src="<?php echo e(asset('assets/node_modules/select2/dist/js/select2.full.min.js')); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset('assets/node_modules/bootstrap-select/bootstrap-select.min.js')); ?>" type="text/javascript">
</script>
<script src="<?php echo e(asset('assets/node_modules/multiselect/js/jquery.multi-select.js')); ?>"></script>
<script>
    // Select 2 init.
    $(".select2").select2({
        formatNoMatches: function () {
            return "<?php echo e(__('messages.noRecordFound')); ?>";
        }
    });

    $(".select2").select2();

    // Save department
    $('#save-job-alert').click(function () {
        
        $.easyAjax({
            url: '<?php echo e(route('jobs.saveJobAlert')); ?>',
            container: '#createJobAlert',
            type: "POST",
            data: $('#createJobAlert').serialize(),
            success: function (response) {
                $('#addJobAlert').modal('hide');

                }
            
        })
    })

   
</script>
<?php /**PATH /home/hoseadevimcon/hr.hosea.dev-imcon.com/resources/views/front/job-alert.blade.php ENDPATH**/ ?>