Roles Edit role

Role Edit

Edit Role Back
{!! Form::model($role, ['method' => 'PATCH','route' => ['roles.update', $role->id]]) !!}
Name: {!! Form::text('display_name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
Description: {!! Form::textarea('description', null, array('placeholder' => 'Description','class' => 'form-control','style'=>'height:100px')) !!}
Permissions
@foreach($rolePerms as $permName => $permData) @php $Perms = $permName . 'Permissions'; $$Perms = '
'. ucfirst($permName) . ' Permissions' . '
'; @endphp @foreach($permissions as $permission) @if(in_array($permission->id, $permData['lists'])) @php $$Perms .= '
'; @endphp @endif @endforeach @php $$Perms .= '
'; @endphp @endforeach
@php echo $rolePermissions; echo $articlePermissions; echo $userPermissions; echo $uploadPermissions; echo $otherPermissions; @endphp
{!! Form::close() !!}