@extends('layout.app')


@section('content')


    <form action="{{ route('unit.store') }}" method="POST">

        @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="{{ old('name') }}" class="form-control"
                        placeholder="Unit Name" autocomplete="off">

                    @error('name')
                        <div class="alert alert-danger mt-1">
                            {{ $message }}
                        </div>
                    @enderror
                </div>
                <div class="form-group col-md-6 float-right">
                    <button type="submit" class="btn btn-success">
                        Save
                    </button>
                </div>
            </div>
        </div>
    </form>


@endsection
