@extends('layouts.admin')

@section('title', 'Tambah Gejala')

@section('content')

<div class="card shadow-sm">
    <div class="card-body">

        <form action="{{ route('gejala.store') }}" method="POST">
            @csrf

            <!-- KODE -->
            <div class="mb-3">
                <label class="form-label">Kode Gejala</label>
                <input type="text"
                        name="kode"
                        class="form-control"
                        value="{{ $kode }}"
                        readonly>
            </div>

            <!-- NAMA -->
            <div class="mb-3">
                <label class="form-label">Nama Gejala</label>
                <input type="text" 
                       name="nama" 
                       class="form-control" 
                       placeholder="Masukkan gejala"
                       required>
            </div>

            <!-- BUTTON -->
            <div class="mt-3">
                <button type="submit" class="btn btn-success">
                    Simpan
                </button>

                <a href="{{ route('gejala.index') }}" class="btn btn-secondary">
                    Kembali
                </a>
            </div>

        </form>

    </div>
</div>

@endsection