{!! Form::label('name', 'الاسم') !!} {!! Form::text('name', null, ['class' => 'form-control']) !!} @if($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! Form::label('name', 'Guard Name') !!} {!! Form::text('guard_name', null, ['class' => 'form-control']) !!} @if($errors->has('guard_name'))
{{ $errors->first('guard_name') }}
@endif
{!! Form::label('label', 'الوصف') !!} {!! Form::text('label', null, ['class' => 'form-control']) !!} @if($errors->has('label'))
{{ $errors->first('label') }}
@endif
{!! Form::label('label', 'الصلاحيات') !!}
@foreach($permissions->groupBy('group_key') as $group => $groupPermissions)
{{ __('strings.roles.' . $group) }}

@foreach($groupPermissions as $perm) @php $per_found = null; if( isset($role) ) { $per_found = $role->hasPermissionTo($perm->name); } if( isset($user)) { $per_found = $user->hasDirectPermission($perm->name); } @endphp
@endforeach
@endforeach