@extends('admin.layout')

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

@section('content')
    <div class="card">
        <div class="card-header bg-success-subtle text-dark">
            <h5 class="mb-0">Tambah Ektrakulikuler</h5>
        </div>
        <div class="card-body">
            <form action="{{ url('admin/data-umum/ekstrakulikuler') }}" method="POST">
                @csrf
                <div class="mb-3">
                    <label class="form-label">Ekstrakulikuler</label>
                    <input type="text" name="nama" class="form-control" required value="{{ old('nama') }}">
                </div>
                <div class="mb-3">
                    <label class="form-label">Kategori</label>
                    <select name="kategori" class="form-select" required>
                        <option value="">-- Pilih Kategori --</option>
                        <option value="wajib 1" {{ old('kategori') == 'wajib 1' ? 'selected' : '' }}>wajib 1</option>
                        <option value="wajib 2" {{ old('kategori') == 'wajib 2' ? 'selected' : '' }}>wajib 2</option>
                        <option value="wajib 3" {{ old('kategori') == 'wajib 3' ? 'selected' : '' }}>wajib 3</option>
                        <option value="pilihan" {{ old('kategori') == 'pilihan' ? 'selected' : '' }}>pilihan</option>
                    </select>
                </div>
                <div class="mb-3">
                    <label class="form-label">Deskripsi Ekstrakulikuler</label>
                    <textarea name="keterangan" class="form-control">{{ old('keterangan') }}</textarea>
                </div>
                <button class="btn btn-primary">Simpan</button>
                <a href="{{ url('admin/data-umum/ekstrakulikuler') }}" class="btn btn-secondary">Batal</a>
            </form>
        </div>
    </div>
@endsection
