diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php
index 4ec3a55..ddeb0f1 100644
--- a/resources/views/users/edit.blade.php
+++ b/resources/views/users/edit.blade.php
@@ -67,18 +67,20 @@
{{ __('Anuluj') }}
-
- @if(auth()->id() !== $user->id)
-
- @endif
+
+ @if(auth()->id() !== $user->id)
+
+
+
+ @endif
diff --git a/tests/Feature/UserSoftDeleteTest.php b/tests/Feature/UserSoftDeleteTest.php
index d1b8f54..05188f1 100644
--- a/tests/Feature/UserSoftDeleteTest.php
+++ b/tests/Feature/UserSoftDeleteTest.php
@@ -42,3 +42,24 @@ test('deleted users can be listed and restored', function () {
$restoreResponse->assertRedirect(route('users.deleted'));
$this->assertNull($user->fresh()->deleted_at);
});
+
+test('edit page does not render nested forms for user actions', function () {
+ Permission::firstOrCreate(['name' => 'users_access']);
+
+ $admin = User::factory()->create();
+ $adminRole = Role::firstOrCreate(['name' => 'admin']);
+ $admin->assignRole($adminRole);
+ $admin->givePermissionTo('users_access');
+
+ $user = User::factory()->create();
+
+ $response = $this->actingAs($admin)->get('/users/' . $user->id . '/edit');
+ $response->assertOk();
+
+ $html = $response->getContent();
+
+ $this->assertDoesNotMatchRegularExpression(
+ '/