@extends('layout.app')


@section('content')
    <form action="{{ route('crm-item-unit.update',$item->id) }}" method="POST">
        @method('PUT')
        @csrf
        <div class="card">
            <div class="card-body">
                <div class="row">
                    <div class="form-group col-md-4">
                        <label for="nas_id">
                            Name *
                        </label>

                        <input type="text" name="name" id="name" value="{{ $item->name}}" required
                            class="form-control" placeholder=" Name" autocomplete="off">
                        @error('name')
                            <div class="alert alert-danger mt-1">
                                {{ $message }}
                            </div>
                        @enderror
                    </div>

                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-success float-right">
                        Save
                    </button>
                </div>
            </div>
        </div>
    </form>

    <div class="p-5"></div>
@endsection
