<style>
	<?php echo file_get_contents($assetPath.'profiler.min.css'); ?>
	<?php if(!empty($sql_log)): ?>
		<?php echo file_get_contents($assetPath.'prettify.min.css'); ?>
	<?php endif; ?>
</style>

<div class="anbu">

	<div class="anbu-window">
		<div class="anbu-content-area">

			<div class="anbu-tab-pane anbu-table anbu-environment">
				<?php echo $__env->make('profiler::profiler._environment', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-controller">
				<?php echo $__env->make('profiler::profiler._controller', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-routes">
				<?php echo $__env->make('profiler::profiler._routes', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-log">
				<?php echo $__env->make('profiler::profiler._logs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-sql">
				<?php echo $__env->make('profiler::profiler._sql', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-checkpoints">
				<?php echo $__env->make('profiler::profiler._times', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-view">
				<?php echo $__env->make('profiler::profiler._view_data', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-file">
				<?php echo $__env->make('profiler::profiler._files', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<div class="anbu-tab-pane anbu-table anbu-session">
				<?php echo $__env->make('profiler::profiler._session', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>

			<?php if (Auth::check()): ?>
				<div class="anbu-tab-pane anbu-table anbu-auth">
					<?php echo $__env->make('profiler::profiler._auth', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				</div>
			<?php endif; ?>

			<?php if (class_exists('Cartalyst\Sentry\SentryServiceProvider') AND Sentry::check()): ?>
				<div class="anbu-tab-pane anbu-table anbu-auth-sentry">
					<?php echo $__env->make('profiler::profiler._auth_sentry', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				</div>
			<?php endif; ?>

		</div>
	</div>

	<ul id="anbu-open-tabs" class="anbu-tabs">
		<li><a data-anbu-tab="anbu-environment" class="anbu-tab" href="#">Env <span class="anbu-count"><?php echo e(App::environment()); ?></span></a></li>
		<li><a data-anbu-tab="anbu-controller" class="anbu-tab" href="#">Controller <span class="anbu-count"><?php echo e((Route::currentRouteAction()) ? Route::currentRouteAction() : 'NULL'); ?></span></a></li>
		<li><a data-anbu-tab="anbu-routes" class="anbu-tab" href="#">Routes <span class="anbu-count"><?php echo e(count(Route::getRoutes())); ?></span></a></li>
		<li><a data-anbu-tab="anbu-log" class="anbu-tab" href="#">Log <span class="anbu-count"><?php echo e(count($app_logs)); ?></span></a></li>
		<li><a data-anbu-tab="anbu-sql" class="anbu-tab" href="#">SQL <span class="anbu-count"><?php echo e(count($sql_log)); ?></span></a></li>
		<li><a class="anbu-tab" data-anbu-tab="anbu-checkpoints">Time <span class="anbu-count"><?php echo e(round($times['total'], 3)); ?> s</span></a></li>
		<li><a class="anbu-tab">Memory <span class="anbu-count"><?php echo e(Profiler::getMemoryUsage()); ?></span></a></li>
		<li><a class="anbu-tab" data-anbu-tab="anbu-file">Files <span class="anbu-count"><?php echo e(count($includedFiles)); ?></span></a></li>
		<li><a class="anbu-tab" data-anbu-tab="anbu-view">View <span class="anbu-count"><?php echo e(count($view_data)); ?></span></a></li>
		<li><a class="anbu-tab" data-anbu-tab="anbu-session">Session <span class="anbu-count"><?php echo e(count(Session::all())); ?></span></a></li>
		<?php if (Auth::check()): ?>
			<li><a class="anbu-tab" data-anbu-tab="anbu-auth">Auth</a></li>
		<?php endif; ?>
		<?php if (class_exists('Cartalyst\Sentry\SentryServiceProvider') AND Sentry::check()): ?>
			<li><a class="anbu-tab" data-anbu-tab="anbu-auth-sentry">Auth <span class="anbu-count"><?php echo e(Sentry::getUser()->email); ?></span></a></li>
		<?php endif; ?>

		<li class="anbu-tab-right"><a id="anbu-hide" href="#">&#8614;</a></li>
		<li class="anbu-tab-right"><a id="anbu-close" href="#">&times;</a></li>
		<li class="anbu-tab-right"><a id="anbu-zoom" href="#">&#8645;</a></li>
	</ul>

	<ul id="anbu-closed-tabs" class="anbu-tabs">
		<li><a id="anbu-show" href="#">&#8612;</a></li>
	</ul>
</div>

<script type="text/javascript">window.jQuery || document.write('<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"><\/script>')</script>
<script><?php echo file_get_contents($assetPath.'profiler.min.js'); ?></script>

<?php if(!empty($sql_log)): ?>
	<script><?php echo file_get_contents($assetPath.'prettify.min.js'); ?></script>
	<script>
	$(function(){
		prettyPrint();
	});
	</script>
<?php endif; ?>
