<?php $__env->startSection('title','Julian Overseas - Find Jobs'); ?>

<?php $__env->startSection('body'); ?>

<div class="services-breadcrumb">
	<div class="inner_breadcrumb">
		<ul class="short_w3ls_agile">
			<li><a href="<?php echo e(url('/')); ?>">Home</a><span>|</span></li>
			<li><a href="<?php echo e(url('/jobs')); ?>">Jobs</a><span>|</span></li>
			<li><?php echo e($job->title); ?> in <?php echo e($job->company->country->name); ?></li>
		</ul>
	</div>
</div>

<?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<div class="banner_bottom">
	<div class="container">
		<div class="tittle_head">
			<h3 class="tittle">Apply for Job</h3>
		</div>
		<div class="row">
			<div class="col-md-8">
				<div class="inner_sec_info_w3ls_agile">
					<div class="panel panel-default">
						<div class="panel-body">
							<h3><?php echo e($job->title); ?></h3>
							<p><span class="text-primary"><i class="fa fa-map-marker"></i> <?php echo e($job->company->country->name); ?></span> &nbsp; <span class="text-success"><i class="fa fa-calendar"></i> Posted <?php echo e($job->created_at->diffForHumans()); ?></span> &nbsp; <span class="text-danger"><i class="fa fa-clock-o"></i> Last date <?php echo e($job->expires_at->toFormattedDateString()); ?> <?php if($job->hasExpired()): ?> (Expired) <?php endif; ?> </span></p>
							<hr>
							<div class="panel panel-default">
								<div class="panel-body">
									<div class="row">
										<div class="col-md-5">
											<img src="<?php echo e(asset('images/'.$job->company->image)); ?>" class="img img-responsive">
										</div>
										<div class="col-md-7">
											<h4><?php echo e($job->company->name); ?></h4>
											<br>
											<h5>Job Title: <?php echo e($job->title); ?></h5>
											<p style="color:green">Salary: <?php echo e($job->company->country->currency); ?> <?php echo e($job->salary); ?></p>
											<p><?php echo $job->description; ?></p>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<?php if(!$job->hasExpired()): ?>
					<h3 class="text-center"><button class="btn btn-success" data-toggle="collapse" data-target="#applyForm">Apply for this job</button></h3>
					<br>
					<div id="applyForm" class="collapse panel panel-default">
						<div class="panel-body">
							<?php echo $__env->make('errors.form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
							<form enctype="multipart/form-data" action="<?php echo e(url('/jobs/apply')); ?>" method="POST">
								<?php echo e(csrf_field()); ?>

								<input type="hidden" name="_method" value="PUT">
								<input type="hidden" name="job" value="<?php echo e($job->id); ?>">
								<div class="form-group">
									<label>Your Name</label>
									<input type="text" name="name" placeholder="Enter your full name here.." class="form-control input-lg" required>
								</div>
								<div class="row">
									<div class="col-md-6">
										<div class="form-group">
											<label>Contact Number</label>
											<input type="text" name="phone" placeholder="Enter your mobile or phone number.." class="form-control input-lg" required>
										</div>
									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label>Email</label>
											<input type="email" name="email" placeholder="Enter your email here.." class="form-control input-lg">
										</div>
									</div>
								</div>
								<div class="form-group">
									<label>Your CV</label>
									<input type="file" accept=".jpg,.png,.pdf,.doc,.docx,.jpeg" name="image" class="btn btn-info" required>
									<span class="help-block">CV is required in order to apply online. (Allowed file types: doc, docx, pdf, jpg)</span>
								</div>
								<div class="form-group">
									<?php echo NoCaptcha::display(); ?>

								</div>
								<input type="submit" name="submit" value="Apply" class="btn btn-success btn-block" style="font-size: 1.6rem">
							</form>
						</div>
					</div>
					<?php endif; ?>
				</div>
			</div>
			<div class="inner_sec_info_w3ls_agile">
				<div class="col-md-4">
					<div class="panel panel-info">
						<div class="panel-heading"><h5 class="text-center">Other Jobs</h5></div>
						<div class="panel-body">
							<?php $__currentLoopData = $jobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $job): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<h5><?php echo e($job->title); ?></h5>
							<h5><?php echo e($job->company->name); ?> , <?php echo e($job->company->country->name); ?></h5>
							<p style="color:green"><?php echo e($job->company->country->currency); ?> <?php echo e($job->salary); ?></p>
							<p><a href="<?php echo e(url('/jobs/'.$job->slug)); ?>" class="btn btn-info">More Info</a></p>
							<hr>
							<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footer'); ?>

<?php echo NoCaptcha::renderJs(); ?>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>