<?php echo $__env->make('components.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<div role="main">
<div class="">
<div class="row">
<div class="col-md-12">
<div class="x_panel">
<div class="x_title">
<h2>Manage Experience Ranges</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" method="POST" action="<?php echo e(route('experienceRanges.store')); ?>"
enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<?php if($errors->any()): ?>
<div class="alert alert-danger">
<ul>
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><?php echo e($error); ?></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="name">Name <span class="required text-danger">*</span>
</label>
<input id="name" class="form-control" value="<?php echo e(old('name')); ?>"
name="name" placeholder="Name"
required="required" type="text">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="description">Description <span class="required text-danger">*</span>
</label>
<textarea id="description" class="form-control" name="description" placeholder="Description"
required="required" rows="3"><?php echo e(old('description')); ?></textarea>
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="text-center">
<button type="submit" class="btn btn-success">Submit</button>
<a href="<?php echo e(route('experienceRanges')); ?>" class="btn btn-default border">Cancel</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="x_panel">
<div class="x_title">
<h2>Experience Range Listing</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<?php if(session('success')): ?>
<div class="alert alert-success">
<?php echo e(session('success')); ?>
</div>
<?php endif; ?>
<div class="table-responsive">
<table class="table table-striped table-bordered" id="experienceRangeTable">
<thead>
<tr>
<th>Experience Range</th>
<th>Description</th>
<th width="150">Actions</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $experienceRanges; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $experienceRange): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($experienceRange->name); ?></td>
<td><?php echo e($experienceRange->description); ?></td>
<td>
<a href="<?php echo e(route('experienceRanges.edit', $experienceRange->id)); ?>" class="btn btn-info btn-sm">
<i class="fa fa-edit"></i> Edit
</a>
<form action="<?php echo e(route('experienceRanges.destroy', $experienceRange->id)); ?>" method="POST" class="d-inline">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want to delete this experience range?')">
<i class="fa fa-trash"></i> Delete
</button>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->startPush('scripts'); ?>
<script>
$(document).ready(function() {
$('#experienceRangeTable').DataTable();
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('components.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php /**PATH C:\xampp\htdocs\codesvistaProject\resources\views\experienceRanges\index.blade.php ENDPATH**/ ?>