
<?php $__env->startSection('css'); ?>
	<?php echo HTML::style('admin/modules/products/css/module.css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_title'); ?>
	<h1>Order Products</h1>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_subtitle'); ?>
	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_content'); ?>
	<form name="contentform" id="contentform">
		<div id="add_page" class="content-box">
			<div class="content-box-header">
				<h3>Order Products</h3>
			</div>
			<div class="content-box-content product_order">
					<?php if(isset($categories) && count($categories) > 0): ?>
						<div class="category-list">
						<?php foreach ($categories as $category): ?>
						<h3><?php echo e($category->name); ?></h3>
							<div class="list-table">
								<div class="row list-header">
									<div class="list0 cell"><div>&nbsp;</div></div>
									<div class="list1 cell"><div>ID</div></div>
									<div class="list2 cell"><div>Name</div></div>
									<div class="list3 cell"><div>Created</div></div>
									<div class="list4 cell"><div>Last Updated</div></div>
								</div>
								<div class="item-list">
										<?php if(count($category->products) > 0): ?>
											<?php foreach ($category->products as $item): ?>
												<div class="row reorder-item" data-item-id="<?php echo e($item->id); ?>">
													<div class="list0 cell"><div>
														<img src="<?php echo URL::asset('admin/images/icons/reorder.png'); ?>" class="reorder" alt="Order" title="Reorder items" />
													</div></div>
													<div class="list1 cell"><div><?php echo e($item->id); ?></div></div>
													<div class="list2 cell"><div><?php echo e($item->name); ?></div></div>
													<div class="list3 cell"><div><?php echo $item->created_at; ?></div></div>
													<div class="list4 cell"><div><?php echo $item->updated_at; ?></div></div>
												</div>
											<?php endforeach; ?>
										<?php else: ?>
											<div class="row reorder-item" data-item-id="<?php echo e($item->id); ?>">
												(Category Empty)
											</div>
										<?php endif; ?>
								</div>
								<div style="clear:both;"></div>
							</div>
						<?php endforeach; ?>
					</div>
					<?php endif; ?>
				<div style="clear:both;"></div>
			</div>
		</div>
	</form>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
	<?php echo HTML::script('admin/jscript/jquery-ui.min.js'); ?>
	<?php echo HTML::script('admin/jscript/jquery.mjs.nestedSortable.js'); ?>
	<?php echo HTML::script('admin/modules/products/jscript/module.js'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>