45 lines
1.4 KiB
PHP
45 lines
1.4 KiB
PHP
<button type="button" class="btn bg-light green p-0" data-toggle="dropdown">
|
|
@if (App\Repositories\Shop\Customers::isConnected())
|
|
<img src="{{ App\Repositories\Shop\Customers::getAvatar() }}" class="img-fluid" title="{{ App\Repositories\Shop\Customers::getName() }}">
|
|
@else
|
|
<i class="fa fa-2x fa-fw fa-user"></i>
|
|
@endif
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="dLabel">
|
|
@if (App\Repositories\Shop\Customers::isConnected())
|
|
<li class="dropdown-item">
|
|
<a href="{{ route('Shop.Customers.profile') }}" title="Accèdez à vos factures, remises ..." rel="nofollow">
|
|
<span>Votre compte</span>
|
|
</a>
|
|
</li>
|
|
<li class="dropdown-item">
|
|
<a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
|
Déconnexion
|
|
</a>
|
|
|
|
<form id="logout-form" action="{{ route('Shop.logout') }}" method="POST" style="display: none;">
|
|
@csrf
|
|
</form>
|
|
|
|
</li>
|
|
@else
|
|
<li class="dropdown-item">
|
|
<a href="{{ route('Shop.Orders.order') }}" title="Identifiez-vous" rel="nofollow">
|
|
<span>Connexion</span>
|
|
</a>
|
|
</li>
|
|
<li class="dropdown-item">
|
|
<a href="{{ route('Shop.register') }}" title="Enregistrez-vous" rel="nofollow">
|
|
<span>Creer votre compte</span>
|
|
</a>
|
|
</li>
|
|
<li class="dropdown-item">
|
|
<a href="https://www.jardinenvie.com/boutique/commander" title="Télécharger le catalogue" rel="nofollow">
|
|
<span>Télécharger le catalogue</span>
|
|
</a>
|
|
</li>
|
|
|
|
@endif
|
|
</ul>
|