@extends('layouts.admin') @section('content')

Gallery Management

Unggah, kelola, dan atur visual galeri foto yang ditampilkan di halaman utama.

Tambah Foto Baru

@if($errors->any())
@foreach($errors->all() as $error)
• {{ $error }}
@endforeach
@endif
@csrf
Tentukan proporsi rasio foto di halaman landing page.
Format: JPG, JPEG, PNG, WEBP, GIF, SVG. Maks: 5MB.
Tempel link jika tidak ingin mengupload file lokal.

Koleksi Foto Galeri

@if($galleryItems->isEmpty())

Belum ada foto galeri.

Unggah foto baru menggunakan form di sebelah kiri.

@else
@foreach($galleryItems as $item)
{{ $item->title ?? 'Photo' }}
{{ $item->title ?? 'Tidak Ada Judul' }}
{{ $item->created_at ? $item->created_at->format('d M Y') : '—' }}
@if($item->span === 'large') Lebar @else Normal @endif
@csrf @method('DELETE')
@endforeach
@if($galleryItems->hasPages())
{{ $galleryItems->links() }}
@endif @endif
@endsection