<?php $__env->startSection('innerContent'); ?>
	<div class="row">
		<div class="col-lg-12">
			<h1 class="page-header">
				<?php echo e($title); ?>

				<?php if(isset($subtitle)): ?>
					(<?php echo e($subtitle); ?>)
				<?php endif; ?>
			</h1>
			<?php if(Session::has('message')): ?>
				<div class="alert alert-danger alert-dismissable">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					<?php echo Session::get('message'); ?>

				</div>
			<?php endif; ?>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<a class="btn btn-primary navbar-btn" <?php echo $modelItem->isCreatable() ? '' : 'disabled'; ?> href="<?php echo e($newEntryRoute); ?>"><i class="fa fa-plus"></i> <?php echo e(Lang::get('admin::lang.table.new-entry')); ?></a>
			<div class="table-responsive">
				<table class="table table-striped table-hover" id="dataTable" <?php echo $modelItem->renderTableAttributes(); ?>>
					<thead>
						<tr>
							<?php foreach($columns as $column): ?>
								<?php echo $column->renderHeader(); ?>

							<?php endforeach; ?>
						</tr>
					</thead>
					<tbody>
						<?php foreach($rows as $row): ?>
							<tr>
								<?php foreach($columns as $column): ?>
									<?php echo $column->render($row, count($rows)); ?>

								<?php endforeach; ?>
							</tr>
						<?php endforeach; ?>
					</tbody>
					<?php if($modelItem->isColumnFilter() && ! $modelItem->isAsync()): ?>
						<tfoot>
							<tr>
								<?php foreach($columns as $column): ?>
									<td></td>
								<?php endforeach; ?>
							</tr>
						</tfoot>
					<?php endif; ?>
				</table>
			</div>
		</div>
	</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin::_layout.inner', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>