<?php	
$upToPage = Page::getByPath("/dashboard");
?>
<?php	echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('System &amp; Settings'), false, false, true, -1, $upToPage); ?>

<?php	
print '<div class="row">';
for ($i = 0; $i < count($categories); $i++) {
	$cat = $categories[$i];
	?>

	
	<?php	 if ($i % 4 == 0) { ?>
		</div>
		<div class="row">
	<?php	 } ?>
	
	<div class="span-pane-fourth">
	


	<div class="ccm-dashboard-system-category">
	<h3><a href="<?php	echo Loader::helper('navigation')->getLinkToCollection($cat, false, true)?>"><?php	echo t($cat->getCollectionName())?></a></h3>
	</div>
	
	<?php	
	$show = array();
	$subcats = $cat->getCollectionChildrenArray(true);
	foreach($subcats as $catID) {
		$subcat = Page::getByID($catID, 'ACTIVE');
		$catp = new Permissions($subcat);
		if ($catp->canRead() && $subcat->getAttribute('exclude_nav') != 1) { 
			$show[] = $subcat;
		}
	}
	
	if (count($show) > 0) { ?>
	
	<div class="ccm-dashboard-system-category-inner">
	
	<?php	 foreach($show as $subcat) { ?>
	
	<div>
	<a href="<?php	echo Loader::helper('navigation')->getLinkToCollection($subcat, false, true)?>"><?php	echo t($subcat->getCollectionName())?></a>
	</div>
	
	<?php	 } ?>
	
	</div>
	
	<?php	 } ?>
	
	</div>
	
	
<?php	 } ?>

<?php	echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper();?>
