
<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="<?php echo URL::asset('assets/js/tagsinput/jquery.tagsinput.css'); ?>" />
    <link rel="stylesheet" href="<?php echo URL::asset('assets/js/jquery-minicolors/jquery.minicolors.css'); ?>" />
    <link rel="stylesheet" href="<?php echo URL::asset('assets/css/admin.css'); ?>" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('outer-content'); ?>

	<h2 class="subheader">
		<div class="container">
			<i class="fa fa-coffee"></i> <?php echo Lang::get('admin.admin_functionality'); ?></h2>
		</div>
	</h2>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>


<div class="container admin">

	<div class="col-md-3 col-lg-3 admin-left">
		
		<div class="row">
			<div class="col-md-12">
				<a class="admin-block rounded-top-left rounded-top-right <?php if(!Input::get('section') || Input::get('section') == 'media'): ?> active <?php endif; ?>" data-section="media" style="background:#cb9800" href="<?php echo URL::to('admin/media'); ?>">
					<i class="fa fa-picture-o"></i><span><?php echo Lang::get('media.media'); ?> (<?php echo count(Media::all()); ?>)</span>
				</a>
			</div>

			<div class="col-md-12">
				<a class="admin-block <?php if(Input::get('section') == 'comments'): ?> active <?php endif; ?>" data-section="comments" style="background:#98cb00" href="<?php echo URL::to('admin/comments'); ?>">
					<i class="fa fa-comments"></i><span><?php echo Lang::get('comments.comments'); ?> (<?php echo count(Comment::all()); ?>)</span>
				</a>
			</div>

			<div class="col-md-12">
				<a class="admin-block <?php if(Input::get('section') == 'users'): ?> active <?php endif; ?>" data-section="users" style="background:#0098cb" href="<?php echo URL::to('admin/users'); ?>">
					<i class="fa fa-user"></i><span><?php echo Lang::get('users.users'); ?> (<?php echo count(User::all()); ?>)</span>
				</a>
			</div>
		</div>

		<div class="row">
			<div class="col-md-12">
				<a class="admin-block <?php if(Input::get('section') == 'categories'): ?> active <?php endif; ?>" data-section="categories" style="background:#bb00c0" href="<?php echo URL::to('admin/categories'); ?>">
					<i class="fa fa-list"></i><span><?php echo Lang::get('category.categories'); ?> (<?php echo count(Category::all()); ?>)</span>
				</a>
			</div>

			<div class="col-md-12">
				<a class="admin-block <?php if(Input::get('section') == 'settings'): ?> active <?php endif; ?>" data-section="settings" style="background:#333344" href="<?php echo URL::to('admin/settings'); ?>">
					<i class="fa fa-cog"></i><span><?php echo Lang::get('common.settings'); ?></span>
				</a>
			</div>

			<div class="col-md-12">
				<a class="admin-block rounded-bottom-left rounded-bottom-right <?php if(Input::get('section') == 'custom_code'): ?> active <?php endif; ?>" data-section="custom_code" style="background:#889966" href="<?php echo URL::to('admin/custom_css'); ?>">
					<i class="fa fa-code"></i><span><?php echo Lang::get('common.custom_code'); ?></span>
				</a>
			</div>
		</div>
		
	</div>

	<div id="admin_section" class="col-md-9">

	</div>

	<?php if(Input::get('sort') != '' && Input::get('order') != ''): ?>
		<input type="hidden" id="sort_order" value="<?php echo '?sort=' . Input::get('sort') . '&order=' . Input::get('order'); ?>" />
	<?php else: ?>
		<input type="hidden" id="sort_order" value="" />
	<?php endif; ?>

</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('javascript'); ?>

	<script type="text/javascript">

		$('document').ready(function(){
			$('a.admin-block').bind('click', function(e) {
				$('a.admin-block.active').removeClass('active');
				$(this).addClass('active');
				//window.location.href = '/?section=comments';
			  var url = $(this).attr('href');
			  $('div#admin_section').load(url + $('#sort_order').val()); // load the html response into a DOM element
			  e.preventDefault(); // stop the browser from following the link
			});

			$('a.admin-block.active').trigger('click');
		});

	</script>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>