ldc-jeusselin/resources/views/layouts/app-header.blade.php
Olivier Legat 2a67dfadcc Front
* nos metiers : injection des datas du bo
* début prise en charge auth/pas auth
Back
* articles (pour la page actualités)
* home slider : en cours
2021-02-19 12:20:43 +01:00

72 lines
4.3 KiB
PHP

<header class="grid">
<div class="toggle-menu flex"><span></span></div>
<div class="logo flex">
<a href="{{ route('home') }}"></a>
</div>
<nav>
<ul class="flex">
<li><a href="{{ route('aboutus') }}">Qui sommes nous&nbsp;?</a></li>
<li><a href="{{ route('ourtrade') }}">Nos métiers</a></li>
<li><a href="{{ route('csr') }}">RSE</a></li>
<li><a href="{{ route('news') }}">Actualités</a></li>
<li><a href="{{ route('contactus') }}">Nous contacter</a></li>
</ul>
</nav>
<div class="right-menu">
<div class="connect-contain flex">
@if (Auth::guard('web')->check())
<p class="active">Bienvenue {{ Auth::user()->firstname }}</p>
@endif
<div class="connect"><a href="{{ route('bo.dashboard') }}" class="first-btn">&nbsp;</a></div>
@if (Auth::guard('web')->check())
<div class="disconnect active">
<form id="logout-form" action="{{route('logout')}}" method="POST">
@csrf
<input type="image" src="{{ asset('images/stop.png') }}" alt="Déconnexion" style="max-height: 30px;" />
</form>
</div>
@endif
</div>
<form action="{{ route('searchresults') }}" method="post" class="search flex">
@csrf
<input type="text" name="txt_search" id="txt_search" placeholder="Rechercher" required>
<button type="submit" class="second-btn">OK</button>
</form>
</div>
<div class="right-menu-mobile flex">
<a href="{{ route('bo.dashboard') }}" class="mobile-connect active">
<svg version="1.1" id="svg-connect" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="510px" height="510px" viewBox="0 0 510 510" style="enable-background:new 0 0 510 510;" xml:space="preserve">
<g>
<g id="account-circle">
<path d="M255,0C114.75,0,0,114.75,0,255s114.75,255,255,255s255-114.75,255-255S395.25,0,255,0z M255,76.5
c43.35,0,76.5,33.15,76.5,76.5s-33.15,76.5-76.5,76.5c-43.35,0-76.5-33.15-76.5-76.5S211.65,76.5,255,76.5z M255,438.6
c-63.75,0-119.85-33.149-153-81.6c0-51,102-79.05,153-79.05S408,306,408,357C374.85,405.45,318.75,438.6,255,438.6z"/>
</g>
</g>
</svg>
</a>
@if (Auth::guard('web')->check())
<form id="logout-form-mobile" action="{{route('logout')}}" method="POST">
@csrf
<input type="image" src="{{ asset('images/stop.png') }}" alt="Déconnexion" style="max-height: 30px;" />
</form>
@endif
<a href="#" class="mobile-search">
<svg version="1.1" id="svg-search" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="590.556px" height="590.556px" viewBox="0 0 590.556 590.556" style="enable-background:new 0 0 590.556 590.556;" xml:space="preserve">
<g>
<g>
<path d="M574.099,469.235L437.61,353.434c-3.248-2.709-7.227-4.171-11.266-4.171c-5.643,0-11.018,2.843-14.373,7.606
c-15.533,22.029-34.578,41.087-56.611,56.635c-4.1,2.895-6.816,7.319-7.449,12.143c-0.635,4.828,0.775,9.602,3.975,13.439
l115.873,136.61c7.852,9.422,19.252,14.859,31.23,14.859c10.768,0,21.021-4.324,28.877-12.179l48.98-48.981
c8.346-8.348,12.656-19.241,12.137-30.68C588.46,487.269,583.175,476.8,574.099,469.235z"/>
<path d="M218.399,433.743c57.923,0,112.385-22.559,153.348-63.522c40.965-40.965,63.523-95.423,63.523-153.349
C435.271,97.29,337.983,0,218.399,0C98.814,0,1.53,97.29,1.53,216.872S98.817,433.743,218.399,433.743z M71.81,216.872
c0-80.83,65.759-146.589,146.589-146.589c80.831,0,146.588,65.759,146.588,146.589c0,39.091-15.262,75.885-42.982,103.602
c-27.721,27.718-64.515,42.984-103.606,42.984C137.569,363.461,71.81,297.701,71.81,216.872z"/>
</g>
</g>
</svg>
</a>
</div>
</header>