@extends('layout.app')
@section('content')

    <form action="{{route('adj-type.update',$list)}}" method="POST">
        @method('PUT')
        @csrf
        <div class="card">
            <div class="card-body">
                <div class="form-group col-md-4">
                    <label for="name" class="">
                        Type Name*
                    </label>
                    <input type="hidden" name="id" value={{$list->id}}>
                    <input type="text" name="name" id="name" value="{{ $list->name }}" class="form-control"
                        placeholder="Type Name Name" autocomplete="off">

                    @error('name')
                        <div class="alert alert-danger mt-1">
                            {{ $message }}
                        </div>
                    @enderror
                </div>
                <div class="form-group col-md-6">
                    <div class="row float-right">
                        <a href="{{ url()->previous() }}"> <button type="submit"
                                class="ml-2 btn btn-primary">Back</button></a>
                        <button type="submit" class="ml-2 btn btn-success">
                            Update
                        </button>
                    </div>
                </div>
            </div>
        </div>

    </form>

@endsection
