@if (Request::is('forgot-password') || Request::is('/') || Request::segment(1)=='reset-password' || Request::is('install')) @yield('content') @include('labels') @else
@authBoth
@include('partials._navbar')
@include('labels') @yield('content') @if(!isset($unauthorized)) @include('modals') @endif
@else
= get_label('session_expired', 'Session expired') ?>!!!
= get_label('log_in', 'Log in') ?>
@endauth
@endif @if (getAuthenticatedUser() && getAuthenticatedUser()->can('create_timesheet'))
@endif @authBoth @endauth @php $user = getAuthenticatedUser(); $permissions = $user ? $user->getPermissionsViaRoles() : collect(); @endphp @role('admin') @endrole @if(session()->has('message')) @elseif(session()->has('error')) @endif