<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{{trans('general.title')}}</title>
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="{{ asset('/bootstrap/css/bootstrap.min.css') }}">
	<link rel="stylesheet" href="{{ asset('/dist/css/font-awesome.min.css') }}">
	<link rel="stylesheet" href="{{ asset('/dist/css/AdminLTE.min.css') }}">
	<link rel="stylesheet" href="{{ asset('/dist/css/app.css') }}">
	<link rel="stylesheet" href="{{ asset('/dist/css/skins/skin-red.css') }}">
	<link rel="stylesheet" href="{{ asset('plugins/pace/pace.min.css') }}">
	<link rel="stylesheet" href="{{ asset('/dist/css/custom.css') }}">
	<link rel="stylesheet" href="{{ asset('plugins/fullcalendar/fullcalendar.css') }}">
	<script src="{{ asset('plugins/jQuery/jQuery-2.1.4.min.js') }}"></script>
	<script src="{{ asset('plugins/fullcalendar/moment.min.js') }}"></script>
	<script src="{{ asset('plugins/fullcalendar/fullcalendar.js') }}"></script>
	<script src="{{ asset('plugins/fullcalendar/locale/locale-all.js') }}"></script>

	{!! Html::style('plugins/sweetalert/sweetalert.css') !!}
	{!! Html::script("plugins/sweetalert/sweetalert.min.js") !!}

	<link rel="shortcut icon" type="image/png" href="{{ asset('dist/img/favicon.png') }}">
	@yield('head')
</head>
<body class="hold-transition skin-red layout-boxed layout-top-nav">
	<div class="wrapper">
		<header class="main-header">
			<nav class="navbar navbar-static-top">
				<div class="container">
					<div class="navbar-header">
						<a href="{{ asset('/') }}" class="navbar-brand"><img src="{{ asset('dist/img/skipper_logo.png') }}" width="50" id="logoCabecera"/><b>Skipper</b> Sailing Club</a>
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
						<i class="fa fa-bars"></i>
						</button>
					</div>
					<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
						<ul class="nav navbar-nav">
						@if(Auth::user()->role->role_permission('view_reservation'))
							<li><a href="{{ url('/calendar') }}"><i class="fa fa-calendar"></i> <span>{{trans('general.calendario')}}</span></a></li>
							<li><a href="{{ url('/reservations') }}"><i class="fa fa-ticket"></i> <span>{{trans('general.reservations')}}</span></a></li>
						@endif

						@if(Auth::user()->role->role_permission('view_incidence'))
						<li><a href="{{ url('/incidences') }}"><i class="fa fa-hand-paper-o"></i> <span>{{trans('general.incidences')}}</span></a></li>
						@endif

						@if(Auth::user()->role->role_permission('view_downloads'))
						<li><a href="{{ url('/downloads') }}"><i class="fa fa-file"></i> <span>{{trans('general.documento')}}</span></a></li>
						@endif

						@if(Auth::user()->role->role_permission('view_documents'))
						<li><a href="{{ url('/documents') }}"><i class="fa fa-file"></i> <span>{{trans('general.personaldocumento')}}</span></a></li>
						@endif

						@if(Auth::user()->role->role_permission('view_links'))
							<li><a href="{{ url('/links') }}"><i class="fa fa-file"></i> <span>Enlaces</span></a></li>
						@endif
						</ul>
					</div>
					<div class="navbar-custom-menu">
						<ul class="nav navbar-nav">
							<li class="dropdown user user-menu">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<img src="{{ asset('/dist/img/users/'.Auth::user()->profile_picture) }}" class="user-image" alt="User Image">
								<span class="hidden-xs">{{ Auth::user() ? Auth::user()->first_name.' '.Auth::user()->last_name : '' }}</span>
								</a>
								<ul class="dropdown-menu">
									<li class="user-header">
										<img src="{{ asset('/dist/img/users/'.Auth::user()->profile_picture) }}" class="img-circle" alt="User Image">										<p>
										{{ Auth::user() ? Auth::user()->first_name.' '.Auth::user()->last_name : '' }}
										<small>{{ Auth::user() && Auth::user()->designation_item ? Auth::user()->designation_item->designation_item : '' }}</small>
										</p>
									</li>
									<li class="user-footer">									    <div class="pull-left">																				@if(Auth::user()->role->role_permission('view_users'))											<a href="{{ asset('/users/'.Auth::user()->id.'/edit') }}" class="btn btn-default btn-flat">Mi cuenta</a>										@endif																				</div>
										<div class="pull-right">
										<a href="{{ asset('/logout') }}" class="btn btn-default btn-flat">Sign out</a>
										</div>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</nav>
		</header>
		<div class="content-wrapper">
			<div class="container">
			{{-- @include('sweet::alert') --}}
			@yield('content')
			</div>
		</div>
		<footer class="main-footer">
			<div class="container">
			<div class="pull-right hidden-xs">
			<strong class="text-green">bookings@skippersailingclub.com</strong>
			</div>
			<strong>Copyright &copy; Skipper Sailing.</strong> | Jardines de San Telmo S/n. Palma de Mallorca | Teléfono: 610 619 547.
			</div>
		</footer>
	</div>


<script src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('dist/js/app.min.js') }}"></script>
@yield('foot')
</body>
</html>
