@forelse ($roles as $key => $role)
{!! Form::model($role, ['method' => 'PUT', 'route' => ['admin.roles.update', $role->id ], 'class' => 'm-b']) !!}
@if($role->name === 'admin')
@include('admin.shared._permissions', [
'title' => ucwords(str_replace("_"," ",$role->name)) .' Permissions',
'options' => ['disabled'],
'key' => $key,
'role_nm' => $role->name,
])
@else
@include('admin.shared._permissions', [
'title' => ucwords(str_replace("_"," ",$role->name)) .' Permissions',
'key' => $key,
'role_nm' => $role->name,
])
@can('edit_roles')
{!! Form::submit('Save', ['class' => 'btn btn-glow-primary btn-primary btn-sm']) !!}
@endcan
@endif
{!! Form::close() !!}
@empty
@endforelse