athenahr/resources/views/vendor/adminlte/partials/navbar/menu-item-logout-link.blade.php
miguel456 25fe13f091
chore(deps): added adminlte vendored items
(this might not be entirely necessary unless we're changing everything adminlte publishes)

Signed-off-by: miguel456 <me@nogueira.codes>
2023-02-26 02:15:25 +00:00

20 lines
795 B
PHP

@php( $logout_url = View::getSection('logout_url') ?? config('adminlte.logout_url', 'logout') )
@if (config('adminlte.use_route_url', false))
@php( $logout_url = $logout_url ? route($logout_url) : '' )
@else
@php( $logout_url = $logout_url ? url($logout_url) : '' )
@endif
<li class="nav-item">
<a class="nav-link" href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
<i class="fa fa-fw fa-power-off text-red"></i>
{{ __('adminlte::adminlte.log_out') }}
</a>
<form id="logout-form" action="{{ $logout_url }}" method="POST" style="display: none;">
@if(config('adminlte.logout_method'))
{{ method_field(config('adminlte.logout_method')) }}
@endif
{{ csrf_field() }}
</form>
</li>