<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Laravel Stats Tracker</title>

	<script src="<?php echo $stats_template_path; ?>/bower_components/jquery/dist/jquery.min.js"></script>

	<?php echo $__env->yieldContent('required-scripts-top'); ?>

    <!-- Core CSS - Include with every page -->
    <link href="<?php echo $stats_template_path; ?>/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo $stats_template_path; ?>/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link href="<?php echo $stats_template_path; ?>/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- Page-Level Plugin CSS - Dashboard -->
    <link href="<?php echo $stats_template_path; ?>/bower_components/morrisjs/morris.css" rel="stylesheet">
    <link href="<?php echo $stats_template_path; ?>/dist/css/timeline.css" rel="stylesheet">

    <!-- SB Admin CSS - Include with every page -->
    <link href="<?php echo $stats_template_path; ?>/dist/css/sb-admin-2.css" rel="stylesheet">

    <link href="//cdn.datatables.net/1.10.2/css/jquery.dataTables.css" rel="stylesheet">

	<link
		rel="stylesheet"
		type="text/css"
		href="https://cloud.github.com/downloads/lafeber/world-flags-sprite/flags16.css"
	/>
</head>

<body>
    <div id="wrapper">
	    <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
	            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo route('tracker.stats.index'); ?>">Laravel Stats Tracker</a>
            </div>
            <!-- /.navbar-header -->

		    <ul class="nav navbar-top-links navbar-right navbar-nav">
				<li <?php echo Session::get('tracker.stats.days') == '0' ? 'class="active"' : ''; ?>>
					<a href="<?php echo route('tracker.stats.index'); ?>?days=0">Today</a>
				</li>

				<li <?php echo Session::get('tracker.stats.days') == '1' ? 'class="active"' : ''; ?>>
					<a href="<?php echo route('tracker.stats.index'); ?>?days=1">1 day</a>
				</li>

				<li <?php echo Session::get('tracker.stats.days') == '7' ? 'class="active"' : ''; ?>>
					<a href="<?php echo route('tracker.stats.index'); ?>?days=7">7 days</a>
				</li>

				<li <?php echo Session::get('tracker.stats.days') == '30' ? 'class="active"' : ''; ?>>
					<a href="<?php echo route('tracker.stats.index'); ?>?days=30">30 days</a>
				</li>

				<li <?php echo Session::get('tracker.stats.days') == '365' ? 'class="active"' : ''; ?>>
					<a href="<?php echo route('tracker.stats.index'); ?>?days=365">1 year</a>
				</li>
            </ul>
            <!-- /.navbar-top-links -->

		    <div class="navbar-default sidebar" role="navigation">
			    <div class="sidebar-nav navbar-collapse">
				    <ul class="nav" id="side-menu">
                        <li>
                            <a href="<?php echo route('tracker.stats.index'); ?>?page=visits" class="<?php echo Session::get('tracker.stats.page') =='visits' ? 'active' : ''; ?>" ><i class="fa fa-dashboard fa-fw"></i> Visits <span class="<?php echo Session::get('tracker.stats.page') =='visits' ? 'fa arrow' : ''; ?>"></span></a>
                        </li>
                        <li>
                            <a href="<?php echo route('tracker.stats.index'); ?>?page=summary" class="<?php echo Session::get('tracker.stats.page') =='summary' ? 'active' : ''; ?>"><i class="fa fa-bar-chart-o fa-fw"></i> Summary <span class="<?php echo Session::get('tracker.stats.page') =='summary' ? 'fa arrow' : ''; ?>"></span></a>
                        </li>
                        <li>
                            <a href="<?php echo route('tracker.stats.index'); ?>?page=users" class="<?php echo Session::get('tracker.stats.page') =='users' ? 'active' : ''; ?>"><i class="fa fa-user fa-fw"></i> Users <span class="<?php echo Session::get('tracker.stats.page') =='users' ? 'fa arrow' : ''; ?>"></span></a>
                        </li>
                        <li>
                            <a href="<?php echo route('tracker.stats.index'); ?>?page=events" class="<?php echo Session::get('tracker.stats.page') =='events' ? 'active' : ''; ?>"><i class="fa fa-bolt fa-fw"></i> Events <span class="<?php echo Session::get('tracker.stats.page') =='events' ? 'fa arrow' : ''; ?>"></span></a>
                        </li>
                        <li>
                            <a href="<?php echo route('tracker.stats.index'); ?>?page=errors" class="<?php echo Session::get('tracker.stats.page') =='errors' ? 'active' : ''; ?>"><i class="fa fa-exclamation fa-fw"></i>Errors <span class="<?php echo Session::get('tracker.stats.page') =='errors' ? 'fa arrow' : ''; ?>"></span></a>
                        </li>
                    </ul>
                    <!-- /#side-menu -->
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h2 class="page-header"><?php echo $title; ?></h2>
                </div>

	            <div class="col-lg-12">
		            <?php echo $__env->yieldContent('page-contents'); ?>
	            </div>
            </div>

	        <div class="row">
		        <div class="col-lg-12">
			        <?php echo $__env->yieldContent('page-secondary-contents'); ?>
		        </div>
	        </div>

            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- Core Scripts - Include with every page -->
    <script src="<?php echo $stats_template_path; ?>/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="<?php echo $stats_template_path; ?>/bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <script src="<?php echo $stats_template_path; ?>/bower_components/raphael/raphael-min.js"></script>
    <script src="<?php echo $stats_template_path; ?>/bower_components/morrisjs/morris.min.js"></script>

    <!-- SB Admin Scripts - Include with every page -->
    <script src="<?php echo $stats_template_path; ?>/dist/js/sb-admin-2.js"></script>

    <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"></script>

    <script src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>

	<?php echo $__env->yieldContent('required-scripts-bottom'); ?>

    <script>
	    <?php echo $__env->yieldContent('inline-javascript'); ?>
    </script>
</body>

</html>
