{{-- --}}
TFuel - Sistema
{{--
--}}
{{-- --}} {{-- --}}
@php use App\Models\Tipo_Usuario; use App\Models\Posto; $permissao = Tipo_Usuario::where('id', auth()->user()->tipo_usuario_id)->first(); $postos = Posto::where('entidade_id', '=', auth()->user()->id)->get(); @endphp
@guest
{{ __('Login') }}
@else
{{ Auth::user()->notificacoes_recebidas()->where('lida', false)->count() }}
{{ Auth::user()->notificacoes_recebidas()->where('lida', false)->count() }} Notificações não lidas
@foreach(Auth::user()->notificacoes_recebidas()->take(10)->orderby('created_at', 'desc')->get() as $notificacao)
@if($notificacao->lida) {{ $notificacao->descricao }} @else
{{ $notificacao->descricao }}
@endif
{{ $notificacao->created_at->diffForHumans() }}
@endforeach
Ver todas as Notificações
{{ Auth::user()->name }}
Alterar Senha
{{ __('Logout') }}
@csrf
@endguest
@auth @if(!session('bloqueio')) @include('adminlte/menu') @endif @endauth @yield('content')