
@extends('admin.layouts.app')

@section('title', 'Tambah Galeri')

@section('content')
<div class="container py-4">
    <h1 class="mb-4 text-primary">Tambah Foto Galeri</h1>

    <div class="card shadow-sm">
        <div class="card-body">
            <form action="{{ route('admin.galeri.store') }}" method="POST" enctype="multipart/form-data">
                @csrf

                <!-- Input Judul -->
                <div class="mb-3">
                    <label for="judul" class="form-label fw-bold">Judul</label>
                    <input type="text" name="judul" id="judul" class="form-control" placeholder="Masukkan judul foto" required>
                </div>

                <!-- Input Foto -->
                <div class="mb-3">
                    <label for="foto" class="form-label fw-bold">Unggah Foto</label>
                    <input type="file" name="foto" id="foto" class="form-control" required>
                    <small class="text-muted">Format yang diperbolehkan: JPG, PNG. Maksimal ukuran 2MB.</small>
                </div>

                <!-- Tombol Simpan -->
                <button type="submit" class="btn btn-success">
                    <i class="fas fa-save"></i> Simpan
                </button>
                <a href="{{ route('admin.galeri.index') }}" class="btn btn-secondary">
                    <i class="fas fa-arrow-left"></i> Kembali
                </a>
            </form>
        </div>
    </div>
</div>
@endsection