<!Doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>Asesoritech</title>
	<link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.css') }}">
	<script  src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
	<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
	<link  media="all" rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">
	<link rel="stylesheet" href="{{ asset('css/nav-style.css') }}">
	<script src="{{ asset('fontawesome-5.1.0/js/all.js') }}"></script>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="{{ asset('fontawesome-5.1.0/css/all.css') }}">
</head>
<body>
	<nav class="navbar navbar-expand-lg fixed-top navbar-light bg-light">
	  <a class="navbar-brand" href="{{ route('inicio') }}"><img class="img-logo" src="{{ asset('img/logo5.png') }}"></a>
	  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
			<span class="navbar-toggler-icon" style="color:white"></span>
	  </button>
	  <div class="navbar-collapse collapse w-100 order-3 dual-collapse2">
		<ul class="navbar-nav ml-auto">
			@if (isset(Auth::user()->role) && Auth::user()->role == 'admin')
			<li class="nav-item">
				<a class="nav-link" href="{{ route('admin') }}">{{ucfirst(@Auth::user()->name)}}</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="{{ route('admin') }}">Admin</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
					{{ __('Logout') }}
				</a>
			</li>
				<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
					{{ csrf_field() }}
				</form>
			</li>
			@elseif (isset(Auth::user()->role) && Auth::user()->role == 'user')
			<li class="nav-item">
				<a class="nav-link" href="{{ route('cliente') }}">
					cliente
				</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
					{{ __('Logout') }}
				</a>
			</li>
				<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
					{{ csrf_field() }}
				</form>
			</li>
			@elseif (isset(Auth::user()->role) && Auth::user()->role == 'desarrollador')
			<li class="nav-item">
				<a class="nav-link" href="{{ route('desarrollador') }}">
					dasarrollador
				</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
					{{ __('Logout') }}
				</a>
			</li>
				<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
					{{ csrf_field() }}
				</form>
			</li>
			@else
			<li class="nav-item">
				<a class="nav-link" href="{{ route('login') }}">Entrar</a>
			</li>
			@endif
		</ul>
	</div>
	</nav>
    <container class="container">	
		@yield('content')
    <container>
</body>
</html>