<?php
if (Session::has("username")){
	echo "Welcome " . Session::get("username");
}else{
	echo "<meta http-equiv='REFRESH'
	content = '3; url=pagelogin'>";
	die("You need to login first");
}

if (Session::get("userlevel") != 0)
	die("Only admin can access this page");

?>

<h1>Manage User</h1>
<a href='adduser'>INSERT</a>
<table class='table'>
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	<tr>
		<td><?php echo e($d->id); ?></td>
		<td><?php echo e($d->username); ?></td>
		<td><?php echo e($d->password); ?></td>
		<td><?php echo e($d->userlevel); ?></td>
		<td><?php echo e($d->fullname); ?></td>
		<td>
		<a href='deleteuser/<?php echo e(encrypt($d->id)); ?>'>
		Delete</a>
		</td>
		<td>
		<a href='edituser/<?php echo e(encrypt($d->id)); ?>'>
		Edit</a>
		</td>
		
	</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table><?php /**PATH C:\xampp\htdocs\laravel8\resources\views/manageuser/listuser.blade.php ENDPATH**/ ?>