@csrf @if (auth()->user()->isSuperAdmin()) @if (Request::is('admin/roles/create'))
@if ($errors->has('contractor')) {{ $errors->first('contractor') }} @endif

{{ trans('cruds.role.fields.contractor_helper') }}

@endif @endif @if (Request::is('admin/roles/create'))
@endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif

{{ trans('cruds.role.fields.name_helper') }}

@if ($errors->has('description')) {{ $errors->first('description') }} @endif

{{ trans('cruds.role.fields.description_helper') }}

{{--
@if ($errors->has('permissions')) {{ $errors->first('permissions') }} @endif

{{ trans('cruds.role.fields.permissions_helper') }}

--}} {{--
@if ($errors->has('users')) {{ $errors->first('users') }} @endif

{{ trans('cruds.role.fields.users_helper') }}

--}}
@csrf @php $list = []; foreach ($permissions as $item) { $list[$item->screen][] = $item; } @endphp @foreach ($list as $screen => $item)
{{ $screen }}
    @foreach ($item as $permission) @endforeach
@endforeach
{{ trans('global.back') }}
@section('scripts') @parent @endsection