 
<?php $__env->startSection('content'); ?>
<?php Fun::lang()?>
<div class="title-add">
	<div class="page-bar"> 
		<ul class="page-breadcrumb"> 
			<li> <a class="ng-binding" href="#"><i class="fa fa-dashboard"></i> Dashboard</a> </li>
			<li><a href="#">Manage User</a></li>
            <li><a href="#">Positions</a></li>
		</ul> 
	</div>
</div>
<div class="page">
	<div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-add">
	                <div class="pull-left">
	                    <h3>Positions</h3>
	                </div>
	            </div>
	            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Position-Create')): ?>
                <div class="pull-right">
                    <a class="button_sm button_primary" href="<?php echo e(route('positions.create')); ?>"><span class="fa fa-plus"></span>  Create New</a>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
	<div class="box-body table-responsive">
		<table id="datatable_department" class="table">
			<thead>
				<tr>
					<th width="10%">No</th>
					<th width="30%">Title</th>
					<th width="30%">Description</th>
					<th width="10%">Action</th>
				</tr>
			</thead>

			<tbody>
				<?php $__currentLoopData = $positions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td><?php echo e($key+1); ?></td>
						<td><?php echo e($value->name); ?></td>
						<td><?php echo e($value->description); ?></td>

						<td>
							<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Position-Edit')): ?>
								<a href="<?php echo e(route("positions.edit", $value->id)); ?>"><span class="button_success fa fa-edit"></span></a>
							<?php endif; ?></td>

					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</div>
</div>
<?php $__env->stopSection(); ?>


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

    <script> 
    	$(document).ready(function() {
		
			$('#datatable_department').DataTable({		
			
		});
		
		});</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>