<div class="modal fade" id="tambahModal" tabindex="-1" aria-labelledby="tambahModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="tambahModalLabel">TAMBAH DATA</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">

                <form method="post" action="{{ route('guru.store') }}" enctype="multipart/form-data"
                    class="mt-6 space-y-6">
                    @csrf

                    @csrf
                    <div class="max-w-xl">
                        <x-input-label for="username" value="NAMA PENGGUNA" />
                        <x-text-input id="username" type="text" name="username" class="mt-1 block w-full" value="{{ old('username')}}" required />
                        <x-input-error class="mt-2" :messages="$errors->get('username')" />
                    </div>
                    <div class="max-w-xl">
                        <x-input-label for="nip" value="NIP" />
                        <x-text-input id="nip" type="text" name="nip" class="mt-1 block w-full" value="{{ old('nip')}}" required />
                        <x-input-error class="mt-2" :messages="$errors->get('nip')" />
                    </div>
                    <div class="max-w-xl">
                        <x-input-label for="nama_guru" value="NAMA GURU" />
                        <x-text-input id="nama_guru" type="text" name="nama_guru" class="mt-1 block w-full" value="{{ old('nama_guru')}}" required />
                        <x-input-error class="mt-2" :messages="$errors->get('nama_guru')" />
                    </div>
                    <div class="max-w-xl">
                        <x-input-label for="jabatan" value="JABATAN" />
                        <x-select-input id="jabatan" name="jabatan" class="mt-1 block w-full" required>
                            <option value="">Pilih Jabatan</option>
                            <option value="Kepala Sekolah" {{ old('jabatan') === 'Kepala Sekolah' ? 'selected' : '' }}>Kepala Sekolah</option>
                            <option value="Guru BK" {{ old('jabatan') === 'Guru BK' ? 'selected' : '' }}>Guru BK</option>
                            <option value="Wali Kelas X" {{ old('jabatan') === 'Wali Kelas X' ? 'selected' : '' }}>Wali Kelas X</option>
                            <option value="Wali Kelas XI" {{ old('jabatan') === 'Wali Kelas XI' ? 'selected' : '' }}>Wali Kelas XI</option>
                            <option value="Wali Kelas XII" {{ old('jabatan') === 'Wali Kelas XII' ? 'selected' : '' }}>Wali Kelas XII</option>
                            <option value="Guru Pengajar" {{ old('jabatan') === 'Guru Pengajar' ? 'selected' : '' }}>Guru Pengajar</option>
                        </x-select-input>
                    </div>
                    <div class="max-w-xl">
                        <x-input-label for="jenis_kelamin" value="JENIS KELAMIN" />
                        <x-select-input id="jenis_kelamin" name="jenis_kelamin" class="mt-1 block w-full" required autocomplete>
                            <option value="">Pilih Jenis Kelamin</option>
                            <option value="P" {{ old('jenis_kelamin') === 'P' ? 'selected' : '' }}>Perempuan</option>
                            <option value="L" {{ old('jenis_kelamin') === 'L' ? 'selected' : '' }}>Laki-Laki</option>
                        </x-select-input>
                    </div>
                    <div class="modal-footer">
                        <x-secondary-button tag="a" data-bs-dismiss="modal">Batal</x-secondary-button>
                        <x-primary-button name="save" value="true">Simpan</x-primary-button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>