@php $path = explode('/', request()->path()); $path[1] = array_key_exists(1, $path) > 0 ? $path[1] : ''; $path[2] = array_key_exists(2, $path) > 0 ? $path[2] : ''; $path[0] = $path[0] === '' ? 'documents' : $path[0]; $visual->sidebar_theme = property_exists($visual, 'sidebar_theme') ? $visual->sidebar_theme : ''; $enterPermissions = auth()->user()->enterPermissions; $default_favicon = 'images/iconoPNG.png'; $default_favicon_version = file_exists(public_path($default_favicon)) ? filemtime(public_path($default_favicon)) : time(); @endphp {{-- Porto uses the same layout contract as Pro9. These are layout states, not cosmetic classes: theme.js relies on them for the fixed desktop shell and off-canvas mobile drawer. --}}
{{-- Force cache bust when app version changes --}}
@endif
@endif
{{-- Mismo orden probado en system/layouts/app.blade.php y app_pos.blade.php --}}
@stack('scripts')