Mercurial > borealpoint
comparison resources/views/profile/partials/delete-user-form.blade.php @ 0:9d7dcd54c677
Initial Commit and package setup
| author | luka |
|---|---|
| date | Sat, 23 Aug 2025 22:20:51 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9d7dcd54c677 |
|---|---|
| 1 <section class="space-y-6"> | |
| 2 <header> | |
| 3 <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100"> | |
| 4 {{ __('Delete Account') }} | |
| 5 </h2> | |
| 6 | |
| 7 <p class="mt-1 text-sm text-gray-600 dark:text-gray-400"> | |
| 8 {{ __('Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.') }} | |
| 9 </p> | |
| 10 </header> | |
| 11 | |
| 12 <x-danger-button | |
| 13 x-data="" | |
| 14 x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')" | |
| 15 >{{ __('Delete Account') }}</x-danger-button> | |
| 16 | |
| 17 <x-modal name="confirm-user-deletion" :show="$errors->userDeletion->isNotEmpty()" focusable> | |
| 18 <form method="post" action="{{ route('profile.destroy') }}" class="p-6"> | |
| 19 @csrf | |
| 20 @method('delete') | |
| 21 | |
| 22 <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100"> | |
| 23 {{ __('Are you sure you want to delete your account?') }} | |
| 24 </h2> | |
| 25 | |
| 26 <p class="mt-1 text-sm text-gray-600 dark:text-gray-400"> | |
| 27 {{ __('Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.') }} | |
| 28 </p> | |
| 29 | |
| 30 <div class="mt-6"> | |
| 31 <x-input-label for="password" value="{{ __('Password') }}" class="sr-only" /> | |
| 32 | |
| 33 <x-text-input | |
| 34 id="password" | |
| 35 name="password" | |
| 36 type="password" | |
| 37 class="mt-1 block w-3/4" | |
| 38 placeholder="{{ __('Password') }}" | |
| 39 /> | |
| 40 | |
| 41 <x-input-error :messages="$errors->userDeletion->get('password')" class="mt-2" /> | |
| 42 </div> | |
| 43 | |
| 44 <div class="mt-6 flex justify-end"> | |
| 45 <x-secondary-button x-on:click="$dispatch('close')"> | |
| 46 {{ __('Cancel') }} | |
| 47 </x-secondary-button> | |
| 48 | |
| 49 <x-danger-button class="ms-3"> | |
| 50 {{ __('Delete Account') }} | |
| 51 </x-danger-button> | |
| 52 </div> | |
| 53 </form> | |
| 54 </x-modal> | |
| 55 </section> |
