@include('components.theme.pages.header')

<section>
    <!-- basic table -->
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    {{ Form::open(['route' => ['nilai.update', 'id' => $id], 'id' => 'form-tag-update']) }}
                    @csrf
                    @if(session()->has('success'))
                        <div class="alert alert-success">
                            {{ session()->get('success') }}
                        </div>
                    @else
                        @if(session()->has('error'))
                            <div class="alert alert-danger">
                                {{ session()->get('error') }}
                            </div>
                        @endif
                    @endif
                        <div class="form-group mb-3">
                            <label for="exampleEmail1">Jumlah Nilai</label>
                            <input type="text" class="form-control form-control-user {{ $errors->has('jum_nilai') ? 'is-invalid' : '' }}" id="email" name="jum_nilai" aria-describedby="emailHelp" placeholder="Enter Jumlah Nilai." value="{{ $nilai->jum_nilai }}">
                            @if($errors->has('jum_nilai'))<span class="small text-danger mt-2">{{ $errors->first('jum_nilai') }}</span>@endif
                        </div>
                        <div class="form-group mb-3">
                            <label for="exampleEmail1">Keterangan Nilai</label>
                            <input type="text" class="form-control form-control-user {{ $errors->has('ket_nilai') ? 'is-invalid' : '' }}" id="email" name="ket_nilai" aria-describedby="emailHelp" placeholder="Enter Keterangan Nilai." value="{{ $nilai->ket_nilai }}">
                            @if($errors->has('ket_nilai'))<span class="small text-danger mt-2">{{ $errors->first('ket_nilai') }}</span>@endif
                        </div>
                        <div class="form-group mb-0">
                            <button type="submit" class="btn btn-primary">Simpan</button>
                            <a href="{{ route('kriteria') }}" class="btn btn-light btn-light">Kembali</a>
                        </div>
                    {{ Form::close() }}
                </div>
            </div>
        </div>
    </div>
</section>

@include('components.theme.pages.footer')
