- Replaced deprecated `flux` components with `maryUI` counterparts (`flux:input` → `x-mary-input`, `flux:button` → `x-mary-button`, etc.). - Removed unused partials (`settings-heading.blade.php`) and outdated structures from Blade files. - Adjusted Livewire modal, form, and button implementations for consistency with `maryUI`. - Streamlined layout and theme styling for improved maintainability and readability.
49 lines
1.7 KiB
PHP
49 lines
1.7 KiB
PHP
<section class="mt-10 space-y-6">
|
|
<div class="relative mb-5">
|
|
<x-mary-header
|
|
title="{{ __('Delete account') }}"
|
|
subtitle="{{ __('Delete your account and all of its resources') }}"
|
|
/>
|
|
</div>
|
|
|
|
<x-mary-button
|
|
class="btn-error"
|
|
wire:click="$set('confirmingUserDeletion', true)"
|
|
>
|
|
{{ __('Delete account') }}
|
|
</x-mary-button>
|
|
|
|
<x-mary-modal wire:model="confirmingUserDeletion" class="backdrop-blur">
|
|
<form method="POST" wire:submit="deleteUser" class="space-y-6">
|
|
|
|
<div>
|
|
<h2 class="text-lg font-bold text-base-content">
|
|
{{ __('Are you sure you want to delete your account?') }}
|
|
</h2>
|
|
<p class="mt-1 text-sm text-base-content/70">
|
|
{{ __('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.') }}
|
|
</p>
|
|
</div>
|
|
|
|
<x-mary-input
|
|
wire:model="password"
|
|
label="{{ __('Password') }}"
|
|
type="password"
|
|
icon="o-key"
|
|
/>
|
|
|
|
<x-slot:actions>
|
|
<div class="flex justify-end space-x-2 rtl:space-x-reverse">
|
|
<x-mary-button @click="$wire.confirmingUserDeletion = false">
|
|
{{ __('Cancel') }}
|
|
</x-mary-button>
|
|
|
|
<x-mary-button type="submit" class="btn-error" spinner="deleteUser">
|
|
{{ __('Delete account') }}
|
|
</x-mary-button>
|
|
</div>
|
|
</x-slot:actions>
|
|
</form>
|
|
</x-mary-modal>
|
|
</section>
|