{{-- ตั้งค่า base URL ของแอป ให้ React fetch() ต่อ path ได้ถูกต้อง แม้เว็บจะรันอยู่ใต้ subdirectory (เช่น /consultingcenter/public) --}} @yield('title') | Consulting Center {{-- โหลด CSS/JS ที่ compile จาก Vite (จำเป็นสำหรับ React component เช่น กราฟต่างๆ) --}} @vite(['resources/css/app.css', 'resources/js/app.jsx']) @yield('style') {{-- ตัวตกแต่งธีมตามฤดูกาล (ซากุระ/ร้อน/ฝน/ใบไม้ร่วง/หนาว) แสดงทุกหน้าที่ extends layout นี้ $activeSeasonTheme มาจาก View Composer ที่ผูกกับ 'layouts.master' ใน AppServiceProvider ดูค่าที่ตั้งไว้ที่เมนู Manage Index --}} @include('partials.season_decor', ['season' => $activeSeasonTheme ?? 'none'])
{{-- จุดที่ 1: วาง Header หลักไว้ตรงนี้ --}} @include('layouts.header') @yield('content')
{{-- จุดที่ 2: วาง Footer หลักไว้ตรงนี้ --}} @include('layouts.footer') {{-- --}} @yield('script')