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

@extends('layouts/contentNavbarLayout')

@section('title', 'Add Kartu Kendali')

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

<form action="{{ route('kartukendali.insert') }}" method="POST">
    @csrf
    <div class="card">
        <div class="card-header">
            Form Input Data Kartu Kendali
        </div>
        <div class="card-body">
            <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>
            <button type="submit" class="btn btn-primary">Submit</button>
        </div>
    </div>
</form>
@endsection