5 @include('settings/navbar', ['selected' => 'roles'])
7 <div class="container small" ng-non-bindable>
9 <p>This will delete the role with the name '{{ $role->display_name }}'.</p>
11 <form action="{{ baseUrl("/settings/roles/delete/{$role->id}") }}" method="POST">
13 <input type="hidden" name="_method" value="DELETE">
15 @if($role->users->count() > 0)
16 <div class="form-group">
17 <p>This role has {{$role->users->count()}} users assigned to it. If you would like to migrate the users from this role select a new role below.</p>
18 @include('form/role-select', ['options' => $roles, 'name' => 'migration_role_id'])
22 <p class="text-neg">Are you sure you want to delete this role?</p>
23 <a href="{{ baseUrl("/settings/roles/{$role->id}") }}" class="button">Cancel</a>
24 <button type="submit" class="button neg">Confirm</button>