@extends('layouts.app')

@section('title', 'Tambah Kriteria Penilaian')

@section('content')
<div class="card">
    <div class="card-header"><h3 class="card-title">Tambah Data</h3></div>
    <div class="card-body">
        <form action="{{ route('kriteria.store') }}" method="POST">
            @csrf
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Nama Kriteria</label>
                <div class="col-sm-10">
                    <input type="text" name="nama_kriteria" class="form-control" required placeholder="Contoh: Teknik Penulisan">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Bobot (%)</label>
                <div class="col-sm-10">
                    <input type="number" name="bobot" class="form-control" required placeholder="Contoh: 20">
                    <small>Masukkan angka persentase tanpa tanda %</small>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Simpan</button>
            <a href="{{ route('kriteria.index') }}" class="btn btn-secondary">Batal</a>
        </form>
    </div>
</div>
@endsection
