{!! csrf_field() !!}

@icon($icon) {{$title}}

{{ trans('settings.role_details') }}
@include('form/text', ['name' => 'display_name'])
@include('form/text', ['name' => 'description'])
@if(config('auth.method') === 'ldap')
@include('form/text', ['name' => 'external_auth_id'])
@endif
{{ trans('settings.role_system') }}
{{ trans('settings.role_asset') }}

{{ trans('settings.role_asset_desc') }}

{{ trans('common.create') }} {{ trans('common.view') }} {{ trans('common.edit') }} {{ trans('common.delete') }}
{{ trans('entities.books') }}
{{ trans('entities.chapters') }}
{{ trans('entities.pages') }}
{{ trans('entities.images') }} @include('settings/roles/checkbox', ['permission' => 'image-create-all']) {{ trans('settings.role_controlled_by_asset') }}
{{ trans('entities.attachments') }} @include('settings/roles/checkbox', ['permission' => 'attachment-create-all']) {{ trans('settings.role_controlled_by_asset') }}
{{ trans('entities.comments') }} @include('settings/roles/checkbox', ['permission' => 'comment-create-all']) {{ trans('settings.role_controlled_by_asset') }}
{{ trans('common.cancel') }} @if (isset($role) && $role->id) id}") }}" class="button neg">{{ trans('settings.role_delete') }} @endif

@icon('users') {{ trans('settings.role_users') }}

@if(isset($role) && count($role->users) > 0) @foreach($role->users as $user) @endforeach
{{ $user->name }} @if(userCan('users-manage') || $currentUser->id == $user->id) id}") }}"> @endif {{ $user->name }} @if(userCan('users-manage') || $currentUser->id == $user->id) @endif
@else

{{ trans('settings.role_users_none') }}

@endif