

<?php $__env->startSection('content'); ?>
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading"><span class="panel-title"><?php echo e(_lang('List Academic Session')); ?></span>
			<a class="btn btn-primary btn-sm pull-right ajax-modal" data-title="<?php echo e(_lang('Add Academic Year')); ?>" href="<?php echo e(route('academic_years.create')); ?>"><?php echo e(_lang('Add New')); ?></a>
			</div>

			<div class="panel-body">
			  <table class="table table-bordered data-table">
				<thead>
				  <tr>
					<th><?php echo e(_lang('Session Name')); ?></th>
					<th><?php echo e(_lang('Academic Year')); ?></th>
					<th><?php echo e(_lang('Action')); ?></th>
				  </tr>
				</thead>
				<tbody>
			    <?php $current = get_option('academic_year'); ?>
			    <?php $__currentLoopData = $academicyears; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $academicyear): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				  <tr id="row_<?php echo e($academicyear->id); ?>">
					<td class='session'><?php echo e($academicyear->session); ?> <?php echo e($academicyear->id==$current ? "(Active)" : ""); ?></td>
					<td class='year'><?php echo e($academicyear->year); ?></td>
					
					<td>
					  <form action="<?php echo e(action('AcademicYearController@destroy', $academicyear['id'])); ?>" method="post">
						<a href="<?php echo e(action('AcademicYearController@edit', $academicyear['id'])); ?>" data-title="<?php echo e(_lang('Update Academic Year')); ?>" class="btn btn-warning btn-sm ajax-modal"><?php echo e(_lang('Edit')); ?></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/administration/academic_year/list.blade.php ENDPATH**/ ?>