<?php include 'header.php'; ?>

<h2 class="text-2xl font-bold text-gray-800 mb-6">Tambah Sekolah Baru</h2>
<form method="POST" action="index.php" class="space-y-4">
    <input type="hidden" name="add_school" value="1">
    <div>
        <label for="school_name" class="block text-sm font-medium text-gray-700">Nama Sekolah</label>
        <input type="text" id="school_name" name="school_name" required class="mt-1 p-2 block w-full border-gray-300 rounded-md">
    </div>
    <div class="flex gap-4">
        <button type="submit" name="add_school" class="bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">Simpan</button>
        <a href="index.php" class="bg-gray-500 hover:bg-gray-600 text-white font-bold py-2 px-4 rounded text-center">Batal</a>
    </div>
</form>

<?php include 'footer.php'; ?>