<?php $__env->startSection('content'); ?>
	
	<h2>Signed up users</h2>
	<div class="buttons">
		<a href="<?php echo URL::to('admin/signed-up-users/export'); ?>" class="btn btn-primary">Export</a>
	</div>
	
	
	<table class="table table-bordered table-striped">
		<thead>
			<tr>
				<th class="text-center">ID</th>
				<th class="col-md-4">Email</th>
				<th class="text-center">IP</th>
                <th class="text-center">Created date</th>
				<th class="text-center">Actions</th>
			</tr>
		</thead>
		<tbody>
		<?php if($users): ?>
			<?php foreach($users as $user): ?>
			<tr>
				<td class="text-center"><?php echo $user->id; ?></td>
				<td><?php echo $user->email; ?></td>
                <td class="text-center"><?php echo $user->ip; ?></td>
                <td class="text-center"><?php echo date('M d, Y, g:ia',strtotime($user->created_at)); ?></td>
				<td class="text-center">
					<?php echo Form::open(array('url' => array('admin/signed-up-users/delete/'.$user->id), 'method' => 'POST')); ?>
					<button type="submit" onclick="return confirm('Are you sure?')" class="btn btn-link"  title="Delete"><i class="glyphicon glyphicon-trash"></i></button>
					<?php echo Form::close(); ?>
				</td>
			</tr>
			<?php endforeach; ?>
		<?php else: ?>
			<tr>
				<td colspan="6">No users yet.</td>
			</tr>
		<?php endif; ?>
		</tbody>
	</table>
    
    <?php echo $users->appends(array('query' => Input::get('query')))->links(); ?>

<?php $__env->stopSection(); ?>