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

<table class="table table-striped table-bordered dataTable" cellspacing="0" width="100%">
	<thead>
		<tr>
			<th>Name</th>
			<th class="center">No IC / Passport</th>
			<th>Email</th>
			<th class="center">No HP</th>
			<th>Shop Name</th>
			<th class="center">Status</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($list_members as $list_member): ?>
		<tr>
			<td><?php echo $list_member->name; ?></td>
			<td class="center"><?php echo $list_member->profile->no_ic; ?></td>
			<td><?php echo $list_member->profile->email; ?></td>
			<td class="center"><?php echo $list_member->profile->handphone; ?></td>
			<td><?php echo $list_member->profile->shop_name; ?></td>
			<td class="center"><?php echo $list_member->type; ?></td>
			<td>
				<center>
					<a href="/admin/member-activate/<?php echo $list_member->id; ?>" class="btn btn-xs btn-success">Activate</a>
					<a href="/admin/member-deactivate/<?php echo $list_member->id; ?>" onclick="return confirm('Member account will be deactivate.')"class="btn btn-xs btn-danger">Deactivate</a>
				</center>
			</td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>


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

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

<?php if(Session::has('status') && Session::get('status') === true): ?>
<div class="alert msg">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<strong>Action Success</strong>
</div>
<?php endif; ?>
<?php if(Session::has('status') && !Session::get('status') ): ?>
<div class="alert msg">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<strong>ERROR! Try again</strong>
</div>
<?php endif; ?>

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

<?php echo $__env->make('admin/template', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>