<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<!-- CSRF Token -->
	<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

	<title>Advanced - <?php echo $__env->yieldContent('title'); ?></title>

	<!-- Styles -->
	<link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet">
	<link href="<?php echo e(asset('css/adminpanel.css')); ?>" rel="stylesheet">
</head>
<body>
	<div id="app">
		<nav class="navbar navbar-default navbar-static-top">
			<div class="container">
				<div class="navbar-header">

					<!-- Collapsed Hamburger -->
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-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>

					<!-- Branding Image -->
					<a class="navbar-brand" href="<?php echo e(url('/')); ?>">
						<?php echo e(config('app.name', 'Julian Overseas')); ?>

					</a>
				</div>

				<div class="collapse navbar-collapse" id="app-navbar-collapse">
					<!-- Left Side Of Navbar -->
					<ul class="nav navbar-nav">
						<?php if(!Auth::guest()): ?>
						<li class="dropdown <?php echo e(Request::segment(2)=='company' ? 'active' : ''); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								Company <span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo e(url('/admin/company')); ?>">View all companies</a></li>
								<li><a href="<?php echo e(url('/admin/company/add')); ?>">Add new company</a></li>
							</ul>
						</li>

						<li class="dropdown <?php echo e(Request::segment(2)=='category' ? 'active' : ''); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								Category <span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo e(url('/admin/category')); ?>">View all categories</a></li>
								<li><a href="<?php echo e(url('/admin/category/add')); ?>">Add new category</a></li>
							</ul>
						</li>
						<li class="dropdown <?php echo e(Request::segment(2)=='job' ? 'active' : ''); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								Job <span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo e(url('/admin/job')); ?>">View all jobs</a></li>
								<li><a href="<?php echo e(url('/admin/job/add')); ?>">Add new job</a></li>
							</ul>
						</li>
						<li class="dropdown <?php echo e(Request::segment(2)=='gallery' ? 'active' : ''); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								Gallery <span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo e(url('/admin/gallery')); ?>">View gallery</a></li>
								<li><a href="<?php echo e(url('/admin/gallery/add')); ?>">Add Image to gallery</a></li>
								<li><a href="<?php echo e(url('/admin/gallery/add/video')); ?>">Add Video to gallery</a></li>

							</ul>
						</li>
						<?php endif; ?>
					</ul>

					<!-- Right Side Of Navbar -->
					<ul class="nav navbar-nav navbar-right">
						<!-- Authentication Links -->
						<?php if(Auth::guest()): ?>
						<li><a href="<?php echo e(route('login')); ?>">Login</a></li>
						<li><a href="<?php echo e(route('register')); ?>">Register</a></li>
						<?php else: ?>
						<li><a href="<?php echo e(url('/admin')); ?>">Admin Panel</a></li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								<?php echo e(Auth::user()->name); ?> <span class="caret"></span>
							</a>

							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="<?php echo e(route('logout')); ?>"
									onclick="event.preventDefault();
									document.getElementById('logout-form').submit();">
									Logout
								</a>

								<form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
									<?php echo e(csrf_field()); ?>

								</form>
							</li>
						</ul>
					</li>
					<?php endif; ?>
				</ul>
			</div>
		</div>
	</nav>
	<div class="container">
		<?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
		<?php echo $__env->yieldContent('content'); ?>
	</div>
</div>

<footer class="footer">
	<p class="text-center">&copy; 2018 Advanced Management Group | Admin Panel <br> Developed by <a href="http://canopustechnology.com.np">Canopus Technology</a></p>
</footer>

<!-- Scripts -->
<script src="<?php echo e(asset('js/app.js')); ?>"></script>

<?php echo $__env->yieldContent('footer'); ?>

</body>
</html>
