<?= $this->extend('admin/layout/template') ?>

<?= $this->section('content') ?>

<div class="page-header-admin">
    <h1 class="page-title">Tambah Pendidikan</h1>
    <a href="<?= base_url('/admin/pendidikan') ?>" class="btn-add" style="background: #333;">
        <i class="fas fa-arrow-left"></i> Kembali
    </a>
</div>

<form action="<?= base_url('/admin/pendidikan/store') ?>" method="post" enctype="multipart/form-data" class="admin-form-container">
    
    <div class="form-group">
        <label class="form-label">Nama Sekolah / Universitas</label>
        <input type="text" name="sekolah" required class="admin-input">
    </div>

    <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;">
        <div>
            <label class="form-label">Jenjang</label>
            <select name="jenjang" class="admin-input">
                <option value="S3">S3</option>
                <option value="S2">S2</option>
                <option value="S1">S1</option>
                <option value="SMA">SMA</option>
                <option value="SMP">SMP</option>
                <option value="SD">SD</option>
                <option value="TK">TK</option>
            </select>
        </div>
        <div>
            <label class="form-label">Jurusan (Optional)</label>
            <input type="text" name="jurusan" class="admin-input">
        </div>
    </div>

    <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;">
        <div>
            <label class="form-label">Tahun Mulai</label>
            <input type="number" name="tahun_mulai" required class="admin-input">
        </div>
        <div>
            <label class="form-label">Tahun Selesai</label>
            <input type="text" name="tahun_selesai" required placeholder="Contoh: 2024 atau Sekarang" class="admin-input">
        </div>
    </div>

    <div class="form-group" style="margin-bottom: 30px;">
        <label class="form-label">Upload Logo</label>
        <input type="file" name="logo" required class="admin-input">
    </div>

    <div style="display: flex; justify-content: center; margin-top: 10px;">
        <button type="submit" class="btn-add" style="padding: 14px 40px;">Simpan Data</button>
    </div>

</form>

<?= $this->endSection() ?>
