@extends('layouts.admin')

@section('content')
<h1>Edit Category</h1>
<form method="POST" action="{{ route('admin.loan-categories.update', $loanCategory) }}">
    @csrf @method('PUT')
    <label>Name</label>
    <input name="name" value="{{ $loanCategory->name }}" required><br>
    <label>Min Score</label>
    <input name="min_score" type="number" value="{{ $loanCategory->min_score }}" ><br>
    <label>Max Score</label>
    <input name="max_score" type="number" value="{{ $loanCategory->max_score }}" ><br>
    <button type="submit">Update</button>
</form>
@endsection
