@php $breadcrumbs = [ 'Manage Index' => '', ]; @endphp @extends('layouts.master') @section('title') Manage Index @endsection @section('style') @endsection @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

* แต่ละ Theme คือหน้า index แบบเต็ม 1 ชุด (ชื่อหลัก + ชื่อรอง + ภาพพื้นหลัง)
* ถ้ามี Theme ที่ Active มากกว่า 1 อัน หน้า index จะแสดงเป็นสไลด์ เปลี่ยนทั้งชุดไปพร้อมกัน — ถ้ามี Active แค่อันเดียวจะแสดงแบบนิ่งอันเดียว
* ลำดับ (Order) คือลำดับการสไลด์

{{-- การ์ด: ตัวตกแต่งธีมตามฤดูกาล (แยกจาก Theme ของหน้า index ด้านล่าง) เลือกได้อันเดียว มีผลกับ "ทุกหน้า" ในเว็บ (ผ่าน layouts.master) ไม่ใช่แค่หน้า index --}}
Seasonal Decoration

ตกแต่งเว็บตามฤดูกาล (กิ่ง/มุมจอ + กลีบ-ใบที่ร่วงผ่านหน้าจอ) เลือกได้ทีละอัน มีผลทุกหน้าของเว็บ ไม่ใช่แค่หน้า index

@php $seasonOptions = [ 'none' => 'ปิด (None)', 'sakura' => '🌸 ซากุระ', 'summer' => '☀️ ฤดูร้อน', 'rainy' => '🌧️ ฤดูฝน', 'autumn' => '🍂 ใบไม้ร่วง', 'winter' => '❄️ ฤดูหนาว', ]; @endphp @foreach($seasonOptions as $value => $label) {{ $label }} @endforeach
Themes
@forelse($themes as $theme) @empty @endforelse
Order Preview Title / Subtitle Status Manage
{{ $loop->iteration }}
@if(!empty($theme->index_theme_banner_image)) @else
No image
@endif
{{ $theme->index_theme_title }} @if(!empty($theme->index_theme_subtitle))
{{ $theme->index_theme_subtitle }}
@endif
@if($theme->index_theme_status == 'active') Active @else Inactive @endif
ยังไม่มี Theme กด "Add Theme" เพื่อเริ่มสร้างหน้า index
{{-- Modal: เพิ่ม/แก้ไข Theme --}} {{-- Modal: จัดการลิงก์ของ Theme ที่เลือก --}} @endsection @section('script') @endsection