<!DOCTYPE html>
<html>
<head>
	<title><?php echo $__env->yieldContent("title","Project 4"); ?></title>
	<meta charset="utf-8">
	<link rel="stylesheet" 
		href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" 
		type="text/css" />
	<link rel="stylesheet" href="/css/style.css" type="text/css" />

	<?php echo $__env->yieldContent("head"); ?>


</head>
<body>
	<div class="content">

		<?php if(Session::get('flash_message')): ?>
			<div class='flash-message'><?php echo Session::get('flash_message'); ?></div>
		<?php endif; ?>


		<nav>
			<ul>
				<?php if(Auth::check()): ?>
					<li><a href='/'>Home</a></li>
					|
					<li><a href='/game'>All Games</a></li>
					|
					<li><a href='/game/create'>Add New Game</a></li>
					|
					<li><a href='/logout'>Log Out <?php echo Auth::user()->email;; ?></a></li>
				<?php else: ?>
					<li><a href='/signup'>Sign up</a> or <a href='/login'>Log In</a></li>
				<?php endif; ?>
			</ul>
		</nav>

		<?php echo $__env->yieldContent("content"); ?>

		<br />
		<a href='https://github.com/masbaty/p4/tree/master/backlog'>Github</a>

	</div>
</body>
</html>