<?php if (is_array($this->view->usersList) && !empty($this->view->usersList)): ?>
	<div class="clearfix">
		<a href="<?php echo $this->helper->setHash('users/'.time().'/surname/desc/1'); ?>" class="float-right"><?php echo _('Show more...'); ?></a>
	</div>
	<table class="table table-hover">
		<thead class="thead-light">
			<tr>
				<th width="1%"></th>
				<th><?php echo _('Surname'); ?></th>
				<th><?php echo _('Name'); ?></th>
				<th class="text-right"><?php echo _('Subscription'); ?></th>
			</tr>
		</thead>
		
		<tbody>
			<?php foreach($this->view->usersList as $user): ?>
				<tr>
					<td><?php echo $this->helper->setAvatarView($this->user->getAvatar($user['id']), ['timestamp'=>md5($user['updated_at'])]); ?></td>
					<td><?php echo $user['surname']; ?></td>
					<td><?php echo $user['name']; ?></td>
					<td class="text-right"><?php echo $this->helper->dateIntervalString($user['created_at']); ?></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
		
	</table>
<?php else: ?>
	<div class="alert alert-light" role="alert"><?php echo _('The subscriptions content is currently empty, please try again in a few minutes.'); ?></div>
<?php endif; ?>