<!DOCTYPE html>
<html lang="en">

<head>
    <?= $this->include('layout/head') ?>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
</head>

<body>
<?= $this->include('layout/sidebar') ?>

<main id="main" class="main">
    <div class="pagetitle">
        <div class="container mt-4">
            <div class="card shadow">
                <div class="card-header text-white" style="background-color: #5c8978;">
                    <h5 class="mb-0">Form Tambah Data Kelas</h5>
                </div>
                <div class="card-body">
                    <form action="<?= base_url('kelas/store') ?>" method="post">
                        <div class="mb-3">
                            <label class="form-label">Nama Kelas</label>
                            <input type="text" name="nama_kelas" class="form-control" required>
                        </div>
                        <div class="mb-3">
                            <label class="form-label">Jumlah Murid</label>
                            <input type="number" name="jumlah_murid" class="form-control" required>
                        </div>
                        <div class="mb-3">
                            <label class="form-label">Tahun Ajaran</label>
                            <input type="text" name="tahun_ajaran" class="form-control" placeholder="contoh: 2024/2025" required>
                        </div>

                        <div class="text-end mt-3">
                            <button type="submit" class="btn btn-success btn-sm me-2">
                                <i class="fas fa-save"></i> Simpan
                            </button>
                            <a href="<?= base_url('kelas') ?>" class="btn btn-secondary btn-sm">
                                <i class="fas fa-arrow-left"></i> Batal
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</main>

</body>
</html>
