<?php echo $this->partial('Layout/nav'); ?>

<div class="container">
	
	<?php echo $this->partial('User/profile-summary', ['showBottomLink'=>true]); ?>
	
	<?php if($this->user->is(REFERRER_ROLE_ID)): ?>
		<div class="row">
			<div class="col-lg-12 col-xl-12">
				<div class="container-page-wrapper shodowed bordered">
					<div class="container-page-container text-center">
						<a href="<?php echo $this->helper->setHash('requests/'.time().'/reports/request_status_number/asc/1'); ?>" class="btn btn-primary btn-lg active" role="button" aria-pressed="true"><?php echo _('My Reports'); ?></a>
					</div>
				</div>
			</div>
		</div>
	<?php endif; ?>
	
	<?php if($this->user->is(APPLICANT_ROLE_ID)): ?>
			<?php echo $this->partial('Dashboard/statistics', ['showRoleLabel'=>$this->view->showRoleLabel, 'roleId'=>APPLICANT_ROLE_ID, 'roleLabel'=>_('Requester')]); ?>
	<?php endif; ?>
	
	<?php if($this->user->is(GUEST_ROLE_ID)): ?>
			<?php echo $this->partial('Dashboard/statistics', ['showRoleLabel'=>$this->view->showRoleLabel, 'roleId'=>GUEST_ROLE_ID, 'roleLabel'=>_('Guest')]); ?>
	<?php endif; ?>
	
	<?php if($this->user->is(REFERRER_ROLE_ID)): ?>
			<?php echo $this->partial('Dashboard/statistics', ['showRoleLabel'=>$this->view->showRoleLabel, 'roleId'=>REFERRER_ROLE_ID, 'roleLabel'=>_('Requester')]); ?>
	<?php endif; ?>
	
	<?php if($this->user->is(MODERATOR_ROLE_ID)): ?>
		<?php echo $this->partial('Dashboard/statistics', ['showRoleLabel'=>$this->view->showRoleLabel, 'roleId'=>MODERATOR_ROLE_ID, 'roleLabel'=>_('Moderator')]); ?>
	<?php endif; ?>
	
	<?php if($this->user->is(ADMIN_ROLE_ID)): ?>
		<?php echo $this->partial('Dashboard/statistics', ['showRoleLabel'=>$this->view->showRoleLabel, 'roleId'=>ADMIN_ROLE_ID, 'roleLabel'=>_('Administrator')]); ?>
	<?php endif; ?>
	
	<?php if($this->checkPermissions([2])): ?>
	
		<div class="row">
			<div class="col-lg-6 col-xl-6">
				<div class="container-page-wrapper shodowed bordered">
					<div class="container-page-container">
						<h4><?php echo _('Last subscriptions'); ?></h4>
						<hr>
						<div id="admin-last-subscriptions"><small class="form-text text-muted"><?php echo _('Click Load button to load this content...'); ?></small></div>
						<div class="clearfix">
							<hr>
							<button type="button" class="btn btn-primary float-right btn-sm btn-dash-show-subscrip"><?php echo _('Load'); ?> <span class="icon-spinner11"></span></button>
						</div>
					</div>
				</div>
			</div>
			
			<div class="col-lg-6 col-xl-6">
				<div class="container-page-wrapper shodowed bordered">
					<div class="container-page-container">
						<h4><?php echo _('Last sessions'); ?></h4>
						<hr>
						<div id="admin-last-sessions"><small class="form-text text-muted"><?php echo _('Click Load button to load this content...'); ?></small></div>
						<div class="clearfix">
							<hr>
							<button type="button" class="btn btn-primary float-right btn-sm btn-dash-show-sess"><?php echo _('Load'); ?> <span class="icon-spinner11"></span></button>
						</div>
					</div>
				</div>
			</div>
			
		</div>
		
		<div class="row">
			<div class="col-lg-6 col-xl-6">
				<div class="container-page-wrapper shodowed bordered">
					<div class="container-page-container">
						<h4><?php echo _('Last accesses'); ?></h4>
						<hr>
						<div id="admin-last-accesses"><small class="form-text text-muted"><?php echo _('Click Load button to load this content...'); ?></small></div>
						<div class="clearfix">
							<hr>
							<button type="button" class="btn btn-primary float-right btn-sm btn-dash-show-accesses"><?php echo _('Load'); ?> <span class="icon-spinner11"></span></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	
	<?php endif; ?>
</div>