<?

foreach($data AS $p) {
	?>
		<a href="<?=$p['link']?>" class="link apanel-link">
			<i 
			style="color:<?=(isset($p['icon_color']) ? $p['icon_color'] : '#cac9c9') ?>;" 
			class="fa <?=(isset($p['icon']) ? $p['icon'] : 'fa-bars') ?> fa-lg" aria-hidden="true">
			</i> 
			<?=$p['name']?> 
			<? if (isset($p['count'])) : ?>
				<span class="apanel-count text-center">
					<?=($p['count'] && empty($p['plus']) > 0 ? '+'. $p['count'] : $p['count'])?>
				</span>
			<? endif ?>
		</a>
	<?
}