@vite('resources/css/app.css')
@stack('head')
@stack('styles')
@include('layouts.navbar')
@yield('content')
@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if (session('info'))
{{ session('info') }}
@endif
{{-- Page-specific JS --}}
@vite('resources/js/app.js')
@stack('scripts')
@yield('scripts')
@auth
{{-- 即時通訊:全站共用的 Echo 連線 + 浮動視窗(訊息主頁自己會關掉浮動視窗)--}}
{{-- /js/messaging*.js 只有 Last-Modified/ETag 沒有 Cache-Control,瀏覽器會
套用 RFC 7234 的 heuristic caching,一般重新整理不保證真的拿到新版——
這幾個檔案還在密集修改,用 filemtime 當版本號讓每次改檔都換一個新網址,
徹底解決「改了但瀏覽器沒吃到」的問題,不用每次都靠使用者手動清快取。 --}}
@endauth