@extends('layout.app')
@section('content')
    <form action="{{ route('roles.store') }}" method="POST">

        @csrf
        <div class="card">
            <div class="card card-body">

                <div class="form-group col-md-4">
                    <label for="name" class="block text-sm font-medium text-gray-700">
                        Role Name*
                    </label>

                    <input type="text" name="name" id="name" value="{{ old('name') }}" class="form-control"
                        placeholder="Role Name" autocomplete="off">

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