2026-02-08 15:16:35 +07:00
< section class = " space-y-6 " >
< header >
< h2 class = " text-lg font-medium text-gray-900 " >
2026-09-23 12:45:02 +07:00
{{ __ ( 'Hapus akun' ) }}
2026-02-08 15:16:35 +07:00
</ h2 >
< p class = " mt-1 text-sm text-gray-600 " >
2026-09-23 12:45:02 +07:00
{{ __ ( 'Setelah akun dihapus, seluruh data terkait akun akan dihapus secara permanen. Pastikan data yang diperlukan sudah diamankan sebelum melanjutkan.' ) }}
2026-02-08 15:16:35 +07:00
</ p >
</ header >
< x - danger - button
x - data = " "
x - on : click . prevent = " $dispatch ('open-modal', 'confirm-user-deletion') "
2026-09-23 12:45:02 +07:00
> {{ __ ( 'Hapus akun' ) }} </ x - danger - button >
2026-02-08 15:16:35 +07:00
< 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 " >
{{ __ ( 'Are you sure you want to delete your account?' ) }}
</ h2 >
< p class = " mt-1 text-sm text-gray-600 " >
{{ __ ( '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 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') " >
{{ __ ( 'Cancel' ) }}
</ x - secondary - button >
< x - danger - button class = " ms-3 " >
2026-09-23 12:45:02 +07:00
{{ __ ( 'Hapus akun' ) }}
2026-02-08 15:16:35 +07:00
</ x - danger - button >
</ div >
</ form >
</ x - modal >
</ section >