@if (count($errors) > 0)
There were some problems with your input.
@foreach ($errors->all() as $error) {{ $error }}
@endforeach @endif @include('flash::message')
{!! Form::label('role_name', 'Role Name', ['class' => 'bold']) !!} {!! Form::text('role_name', null, ['required', 'class' => 'form-control', 'placeholder' => 'e.g. Content Editor']) !!} {!! APFrmErrHelp::showErrors($errors, 'role_name') !!}
{!! Form::label('role_abbreviation', 'Abbreviation', ['class' => 'bold']) !!} {!! Form::text('role_abbreviation', null, ['required', 'class' => 'form-control', 'placeholder' => 'e.g. CONT_ED']) !!} {!! APFrmErrHelp::showErrors($errors, 'role_abbreviation') !!}
{!! Form::label('role_description', 'Description', ['class' => 'bold']) !!} {!! Form::text('role_description', null, ['class' => 'form-control', 'placeholder' => 'Short description']) !!} {!! APFrmErrHelp::showErrors($errors, 'role_description') !!}

Select which permissions this role has. Permissions are grouped by module.

@forelse($permissions as $module => $items)
{{ $module ?: 'General' }}
@foreach($items as $perm)
{!! Form::checkbox('permissions[]', $perm->id, in_array($perm->id, $rolePermissionIds ?? []), ['class' => 'form-check-input', 'id' => 'perm_' . $perm->id]) !!}
@endforeach
@empty

No permissions defined. Run migrations to seed default permissions: php artisan migrate

@endforelse