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

<?php $__env->startPush('header_styles'); ?>
<!-- third party css -->
<link href="<?php echo e(asset('assets/css/vendor/dataTables.bootstrap5.css')); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo e(asset('assets/css/vendor/responsive.bootstrap5.css')); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo e(asset('assets/css/vendor/buttons.bootstrap5.css')); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo e(asset('assets/css/vendor/select.bootstrap5.css')); ?>" rel="stylesheet" type="text/css">
<!-- third party css end -->

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


<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>




<div class="container mt-2">
		<?php $__env->startComponent('components.breadcrumb'); ?>
            <?php $__env->slot('title'); ?>
                <?php echo app('translator')->get('admissioninfo.viewtitle'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1'); ?>
                <?php echo app('translator')->get('common.dashboard'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1_link'); ?>
                <?php echo e(route('dashboard')); ?>

            <?php $__env->endSlot(); ?>
            <?php if(\App\Traits\RolePermissionTrait::checkRoleHasPermission('role', 'create')): ?>
                <?php $__env->slot('action_button1'); ?>
                    <?php echo app('translator')->get('common.add_new'); ?>
                <?php $__env->endSlot(); ?>
                <?php $__env->slot('action_button1_link'); ?>
                    <?php echo e(route('admissioninfo.create')); ?>

                <?php $__env->endSlot(); ?>
            <?php endif; ?>
            <?php $__env->slot('action_button1_class'); ?>
                btn-primary
            <?php $__env->endSlot(); ?>
        <?php echo $__env->renderComponent(); ?>
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<h3><?php echo app('translator')->get('admissioninfo.managetitle'); ?></h3><br>
				<table id="datatable-buttons" class="table table-striped dt-responsive nowrap w-100">
					<thead class="mythead">
						<tr>
							<th>#</th>
							<th><?php echo app('translator')->get('admissioninfo.type'); ?></th>
							<th><?php echo app('translator')->get('admissioninfo.date'); ?></th>
							<th><?php echo app('translator')->get('admissioninfo.title'); ?></th>
							<th><?php echo app('translator')->get('admissioninfo.image'); ?></th>
							<th><?php echo app('translator')->get('common.action'); ?></th>
						</tr>
					</thead>
					<tbody class="tbody" id="showtdata">
						<?php $i=1;  ?>
						<?php if(isset($data)): ?>
						<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr id="tr<?php echo e($d->id); ?>">
							<td><?php echo e($i++); ?></td>
							<td>
								<?php if($d->type == 1): ?>
                                <?php echo app('translator')->get('admissioninfo.prospects'); ?>
								<?php endif; ?>
								<?php if($d->type == 2): ?>
                                <?php echo app('translator')->get('admissioninfo.admission_system'); ?>
								<?php endif; ?>
								<?php if($d->type == 3): ?>
                                <?php echo app('translator')->get('admissioninfo.admission_rules'); ?>
								<?php endif; ?>
								<?php if($d->type == 4): ?>
                                <?php echo app('translator')->get('admissioninfo.admission_result'); ?>
								<?php endif; ?>
								<?php if($d->type == 5): ?>
                                <?php echo app('translator')->get('admissioninfo.admission_question'); ?>
								<?php endif; ?>
							</td>
							<td><?php echo e($d->date); ?></td>
							<td><?php if($lang == 'en'): ?><?php echo e($d->title ?: $d->title_bn); ?><?php else: ?><?php echo e($d->title_bn ?: $d->title); ?><?php endif; ?></td>
							<td><a href="<?php echo e($d->image); ?>" download="" class="btn btn-success btn-sm"><?php echo app('translator')->get('common.download'); ?></a></td>
							<td>
								<div class="btn-group">
									<a  class="btn btn-info border-0 edit text-light" data-toggle="modal" data-target="#exampleModalCenters" href="<?php echo e(route("admissioninfo.edit",$d->id)); ?>"><?php echo app('translator')->get('common.edit'); ?></a>
									<form action="<?php echo e(route('admissioninfo.destroy',$d->id)); ?>" method="post">
										<?php echo csrf_field(); ?>
										<?php echo method_field('DELETE'); ?>
										<button type="submit" class="btn btn-danger" onClick="return confirm('Are You Sure?')"><?php echo app('translator')->get('common.delete'); ?></button>

									</form>
								</div>
							</td>

						</tr>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						<?php endif; ?>


					</tbody>
				</table>





			</div> <!-- end card body-->
		</div> <!-- end card -->
	</div><!-- end col-->
</div>










<?php $__env->startPush('footer_scripts'); ?>
<!-- third party js -->
<script src="<?php echo e(asset('assets/js/vendor/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/dataTables.bootstrap5.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/responsive.bootstrap5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/dataTables.buttons.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/buttons.bootstrap5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/buttons.html5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/buttons.flash.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/buttons.print.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/dataTables.keyTable.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/vendor/dataTables.select.min.js')); ?>"></script>
<!-- third party js ends -->

<!-- demo app -->
<script src="<?php echo e(asset('assets/js/pages/demo.datatable-init.js')); ?>"></script>
<!-- end demo js-->


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

<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>

<script>
	<?php if(Session::has('message')): ?>
	toastr.options =
	{
		"closeButton" : true,
		"progressBar" : true
	}
	toastr.success("<?php echo e(session('message')); ?>");
	<?php endif; ?>

	<?php if(Session::has('error')): ?>
	toastr.options =
	{
		"closeButton" : true,
		"progressBar" : true
	}
	toastr.error("<?php echo e(session('error')); ?>");
	<?php endif; ?>

	<?php if(Session::has('info')): ?>
	toastr.options =
	{
		"closeButton" : true,
		"progressBar" : true
	}
	toastr.info("<?php echo e(session('info')); ?>");
	<?php endif; ?>

	<?php if(Session::has('warning')): ?>
	toastr.options =
	{
		"closeButton" : true,
		"progressBar" : true
	}
	toastr.warning("<?php echo e(session('warning')); ?>");
	<?php endif; ?>
</script>





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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gzmcfenigov/public_html/resources/views/admin/admissioninfo/index.blade.php ENDPATH**/ ?>