<x-app-layout>
    @section('title')
        Permissions Edit
    @endsection
    <!-- DataTales Example -->
    <div class="row">
        <div class="col-md-10 m-auto">
            <h1 class="h3 mb-2 text-gray-800">
                <a href="{{ route('admin.permissions.index') }}" class="btn btn-primary"><i class="fas fa-list"
                        aria-hidden="true"></i> Listing Permissions
                </a>
            </h1>
            {{-- @include('admin.layouts.partials.validation') --}}
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">
                        Listing Permissions Form
                    </h6>
                </div>
                <div class="card-body">
                    <form id="quickForm" novalidate="novalidate" method="POST" action="{{ route('admin.permissions.update',$permission->id)}}">
                        @csrf
                        @method('put')

                        <div class="form-group">
                            <label for="role_name" class="mb-0">Permissions Name <span class="text-danger">*</span></label>
                            <input type="text" class="form-control @error('name') is-invalid @enderror" id="role_name" name="name"
                                                placeholder="Enter Name" value="{{ old('name',$permission->name) }}">
                            @error('name')
                                <p class="alert alert-danger">{{ $message }}</p>
                            @enderror
                        </div>
                        <button type="submit" class="btn btn-success">
                            Update
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</x-app-layout>

