<!-- resources/views/classification/create.blade.php -->

@extends('layouts/contentNavbarLayout')

@section('title', 'Add Classification')

@section('content')
<!-- Your existing content goes here -->
<h4 class="fw-bold py-3 mb-4">
    <span class="text-muted fw-light">Add Classification</span>
</h4>

<form action="{{ route('classification.insert') }}" method="POST">
    @csrf
    <div class="card">
        <div class="card-header">
            Form Input Data Classification
        </div>
        <div class="card-body">
            <form>
                <div class="mb-3">
                    <label for="nama" class="form-label">Nama</label>
                    <select id="nama" class="select2 form-select" name="id">
                        <option value="" disabled selected>(Select)</option>
                        @foreach ($siswa as $data)
                            <option value="{{$data->user_id}}">{{$data->nama}}</option>
                        @endforeach
                    </select>
                </div>
                <div class="mb-3">
                    <label for="nilai" class="form-label">Nilai</label>
                    <input type="number" class="form-control" id="nilai" name="nilai">
                </div>
                <div class="mb-3">
                    <label for="hasil_kelas" class="form-label">Hasil Kelas</label>
                    <select id="level" class="select2 form-select" name="hasil_kelas">
                        <option value="" disabled selected>(Select)</option>
                        <option value="Pre-Kids">Pre-Kids</option>
                        <option value="Beginner">Beginner</option>
                        <option value="Intermediate">Intermediate</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary">Submit</button>
            </form>
        </div>
    </div>
    @endsection