

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

<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default no-export">
			<div class="panel-heading"><span class="panel-title"><?php echo e(_lang('List Notice')); ?></span>
			<a class="btn btn-primary btn-sm pull-right" href="<?php echo e(route('notices.create')); ?>"><?php echo e(_lang('Add New')); ?></a>
			</div>

			<div class="panel-body">
			 <?php if(\Session::has('success')): ?>
			  <div class="alert alert-success">
				<p><?php echo e(\Session::get('success')); ?></p>
			  </div>
			  <br />
			 <?php endif; ?>
			<table class="table table-bordered data-table">
			<thead>
			  <tr>
				<th><?php echo e(_lang('Heading')); ?></th>
				<th><?php echo e(_lang('Showing Area')); ?></th>
				<th><?php echo e(_lang('Created at')); ?></th>
				<th style="width:220px;"><?php echo e(_lang('Action')); ?></th>
			  </tr>
			</thead>
			<tbody>
			  
			  <?php $__currentLoopData = $notices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			  <tr id="row_<?php echo e($notice->id); ?>">
				<td class='heading'><?php echo e($notice->heading); ?></td>
				<td class='user_type'><?php echo e(object_to_string($notice->user_type,'user_type')); ?></td>
				<td class='heading'><?php echo e($notice->created_at); ?></td>
					
				<td>
				  <form action="<?php echo e(action('NoticeController@destroy', $notice['id'])); ?>" method="post">
					<a href="<?php echo e(action('NoticeController@edit', $notice['id'])); ?>" class="btn btn-warning btn-sm"><?php echo e(_lang('Edit')); ?></a>
					<a href="<?php echo e(action('NoticeController@show', $notice['id'])); ?>" class="btn btn-info btn-sm"><?php echo e(_lang('View')); ?></a>
					<?php echo e(csrf_field()); ?>

					<input name="_method" type="hidden" value="DELETE">
					<button class="btn btn-danger btn-sm btn-remove" type="submit"><?php echo e(_lang('Delete')); ?></button>
				  </form>
				</td>
			  </tr>
			  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		  </table>
			</div>
		</div>
	</div>
</div>

<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\htdocs\hostel\resources\views/backend/notice/list.blade.php ENDPATH**/ ?>