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

    <form action="{{ route('unit.update', $list->id) }}" method="POST">
        @method('PUT')
        @csrf
        <div class="card">
            <div class="card-body">
                <div class="form-group col-md-4">
                    <label for="name" class="">
                        Unit Name*
                    </label>
                    <input type="text" name="name" id="name" value="{{ $list->name }}" class="form-control"
                        placeholder="Package 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
