schneespur/release/schneespur-1.0.2/resources/views/profile/partials/delete-user-form.blade.php
Michael 7288b93500 Release v1.0.2: diagnostic infrastructure core
Add neutral diagnostic framework for future reporting modules:
- DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer
- Laravel exception hook in bootstrap/app.php
- Module permission declarations (requires_permissions in module.json)
- Core diagnostic report points (module boot/install/update failures)
- Module documentation update (moduldoku.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 16:54:11 +00:00

55 lines
1.8 KiB
PHP

<section class="space-y-6">
<header>
<h2 class="text-lg font-medium text-gray-900">
{{ __('profile.section_delete') }}
</h2>
<p class="mt-1 text-sm text-gray-600">
{{ __('profile.section_delete_description') }}
</p>
</header>
<x-danger-button
x-data=""
x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')"
>{{ __('profile.btn_delete') }}</x-danger-button>
<x-modal name="confirm-user-deletion" :show="$errors->userDeletion->isNotEmpty()" focusable>
<form method="post" action="{{ route('profile.destroy') }}" class="p-6">
@csrf
@method('delete')
<h2 class="text-lg font-medium text-gray-900">
{{ __('profile.delete_confirm_title') }}
</h2>
<p class="mt-1 text-sm text-gray-600">
{{ __('profile.delete_confirm_description') }}
</p>
<div class="mt-6">
<x-input-label for="password" value="{{ __('Password') }}" class="sr-only" />
<x-text-input
id="password"
name="password"
type="password"
class="mt-1 block w-3/4"
placeholder="{{ __('Password') }}"
/>
<x-input-error :messages="$errors->userDeletion->get('password')" class="mt-2" />
</div>
<div class="mt-6 flex justify-end">
<x-secondary-button x-on:click="$dispatch('close')">
{{ __('profile.btn_cancel') }}
</x-secondary-button>
<x-danger-button class="ms-3">
{{ __('profile.btn_delete') }}
</x-danger-button>
</div>
</form>
</x-modal>
</section>