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

<?php echo app('translator')->getFromJson('department.department_list'); ?>

<?php $__env->stopSection(); ?>
<div class="container-fluid">
	<div class="row bg-title">
		<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
		   <ol class="breadcrumb">
				<li class="active breadcrumbColor"><a href="<?php echo e(url('dashboard')); ?>"><i class="fa fa-home"></i> <?php echo app('translator')->getFromJson('dashboard.dashboard'); ?></a></li>
				<li><?php echo $__env->yieldContent('title'); ?></li>
			</ol>
		</div>	
		<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
			<a href="<?php echo e(route('department.create')); ?>"  class="btn btn-success pull-right m-l-20 hidden-xs hidden-sm waves-effect waves-light"> <i class="fa fa-plus-circle" aria-hidden="true"></i> <?php echo app('translator')->getFromJson('department.add_department'); ?></a>
		</div>	
	</div>
                
	<div class="row">
		<div class="col-sm-12">
			<div class="panel panel-info">
				<div class="panel-heading"><i class="mdi mdi-table fa-fw"></i> <?php echo $__env->yieldContent('title'); ?></div>
				<div class="panel-wrapper collapse in" aria-expanded="true">
					<div class="panel-body">
						<?php if(session()->has('success')): ?>
							<div class="alert alert-success alert-dismissable">
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
								<i class="cr-icon glyphicon glyphicon-ok"></i>&nbsp;<strong><?php echo e(session()->get('success')); ?></strong>
							</div>
						<?php endif; ?>
						<?php if(session()->has('error')): ?>
							<div class="alert alert-danger alert-dismissable">
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
								<i class="glyphicon glyphicon-remove"></i>&nbsp;<strong><?php echo e(session()->get('error')); ?></strong>
							</div>
						<?php endif; ?>
						<div class="table-responsive">
							<table id="myTable" class="table table-bordered">
								<thead>
									 <tr class="tr_header">
                                        <th><?php echo app('translator')->getFromJson('common.serial'); ?></th>
                                        <th><?php echo app('translator')->getFromJson('common.name'); ?></th>
                                        <th style="text-align: center;"><?php echo app('translator')->getFromJson('common.action'); ?></th>
                                    </tr>
								</thead>
								<tbody>
									<?php echo $sl=null; ?>

									<?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<tr class="<?php echo $value->department_id; ?>">
											<td style="width: 300px;"><?php echo ++$sl; ?></td>
											<td><?php echo $value->department_name; ?></td>
											<td style="width: 100px;">
												<a href="<?php echo route('department.edit',$value->department_id); ?>"  class="btn btn-success btn-xs btnColor">
													<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
												</a>
												<a href="<?php echo route('department.delete',$value->department_id ); ?>" data-token="<?php echo csrf_token(); ?>" data-id="<?php echo $value->department_id; ?>" class="delete btn btn-danger btn-xs deleteBtn btnColor"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
											</td>
										</tr>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

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