2023-07-16 19:21:09 +06:00
|
|
|
@csrf
|
|
|
|
<x-private.forms.input :title="__('validation.attributes.name')" name="name" type="text" :value="$role->name" required autofocus />
|
|
|
|
<x-private.forms.permissions_for_role :title="__('validation.attributes.permissions')" name="permissions[]" :value="$role->permissions->pluck('permission')->toArray()" :role="$role" />
|
|
|
|
<x-private.forms.input :title="__('validation.attributes.code')" name="code" type="text" :value="$role->code" :disabled="!empty($role->id)" required />
|
2023-08-01 21:53:07 +06:00
|
|
|
@canany(['create', 'update'], $role)
|
|
|
|
<button class="btn btn-primary" type="submit">{{ __('Save') }}</button>
|
|
|
|
@endcanany
|