<div class="form form-profile aif" style='width:auto'>
	<h2 style="margin-top:0px;">
		Shop Categories - <a href="/store" title="View Shop page" target="_blank">View Shop page 
		<i class="fa fa-angle-right" aria-hidden="true"></i></a>
	</h2>
	
	<table class="admintable" style="width:100%; overflow:hidden;">
		<tr><th width="150">Image</th><th width="150">Name</th><th width="300">Filename</th><th>Actions</th></tr>
		<?php
		foreach ($store_categories as $cat) {
			echo "<tr>
					<td style='padding:10px;'><img src='{$cat['image']}' alt='{$cat['name']}' /></td>
					<td style='padding:10px;'>{$cat['name']}</td>
					<td style='padding:10px;'>{$cat['image']}</td>
					<td style='padding:10px;'><a href='?store_cat&edit={$cat['id']}'>edit</a> | <a href='?store_cat&delete={$cat['id']}' class='confirm'>delete</a></td>
					</tr>";
		}
		?>
	</table>
	
	<div style="margin:10px;">
		<a href='?store_cat&add' class='btn btn-blue'>Add New</a>
		<a href='/product/add' class='btn btn-blue'>Create New Product</a>
	</div>
</div>
                            