From bc4287eca6df8909c3a5567bba13fafa83c0b08c Mon Sep 17 00:00:00 2001 From: Kamieljv Date: Fri, 22 Mar 2024 17:27:03 +0100 Subject: [PATCH] Frontend in settings page --- resources/lang/nl/settings.php | 2 ++ resources/views/assets/sass/app.scss | 3 +++ resources/views/settings/partials/profile.blade.php | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/resources/lang/nl/settings.php b/resources/lang/nl/settings.php index 73895aad..1fc321ed 100644 --- a/resources/lang/nl/settings.php +++ b/resources/lang/nl/settings.php @@ -15,6 +15,8 @@ 'update_success' => 'Uw profiel is bijgewerkt.', 'avatar_delete_success' => 'Uw profielfoto is verwijderd.', 'avatar_delete_fail' => 'Er is iets misgegaan.', + 'delete_account' => 'Account verwijderen', + 'delete_account_text' => 'Druk op de knop hieronder om je account te verwijderen. We zullen alle data gekoppeld aan je account verwijderen. Acties die je hebt aangemeld blijven staan.', ], 'security' => [ 'incorrect_current_password' => 'Het huidige wachtwoord is incorrect.', diff --git a/resources/views/assets/sass/app.scss b/resources/views/assets/sass/app.scss index a9da8f70..cb1829a2 100755 --- a/resources/views/assets/sass/app.scss +++ b/resources/views/assets/sass/app.scss @@ -107,6 +107,9 @@ &.gray { @apply flex justify-center px-4 py-2 text-sm font-medium cursor-pointer text-gray-600 transition duration-150 ease-in-out border border-transparent rounded-md bg-gray-200 hover:bg-gray-300; } + &.danger { + @apply flex justify-center px-4 py-2 text-sm font-medium cursor-pointer text-white transition duration-150 ease-in-out border border-transparent rounded-md bg-red-600 hover:bg-red-500; + } } } diff --git a/resources/views/settings/partials/profile.blade.php b/resources/views/settings/partials/profile.blade.php index f5ad5bf2..e955e53e 100755 --- a/resources/views/settings/partials/profile.blade.php +++ b/resources/views/settings/partials/profile.blade.php @@ -15,6 +15,13 @@ {{ csrf_field() }} +
+
{{__('settings.profile.delete_account')}}
+

{{__('settings.profile.delete_account_text')}}

+ + + +
@push('scripts')