<section class="space-y-6">
    <div class="mb-6">
        <h5 class="text-[13px] font-bold text-red-600 uppercase tracking-widest">
            Supprimer le compte
        </h5>
    </div>

    <div class="bg-white p-4 rounded-sm border border-red-100 flex items-start gap-4">
        <div>
            <p class="text-[13px] text-slate-700 font-medium">
                <?php echo e(__("Une fois votre compte supprimé, toutes ses ressources et données seront définitivement effacées. Cette action est irréversible.")); ?>

            </p>
            <button class="mt-4 px-5 py-2 bg-red-600 text-white text-sm font-semibold rounded-sm hover:bg-red-700 transition-all shadow-sm"
                x-data="" x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')">
                <?php echo e(__('Supprimer définitivement')); ?>

            </button>
        </div>
    </div>

    <?php if (isset($component)) { $__componentOriginal9f64f32e90b9102968f2bc548315018c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9f64f32e90b9102968f2bc548315018c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.modal','data' => ['name' => 'confirm-user-deletion','show' => $errors->userDeletion->isNotEmpty(),'focusable' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'confirm-user-deletion','show' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->userDeletion->isNotEmpty()),'focusable' => true]); ?>
        <form method="post" action="<?php echo e(route('profile.destroy')); ?>" class="p-6">
            <?php echo csrf_field(); ?>
            <?php echo method_field('delete'); ?>

            <h5 class="text-[14px] font-bold text-gray-700 uppercase tracking-wide mb-4">
                <?php echo e(__('Confirmation de suppression')); ?>

            </h5>

            <p class="text-[13px] text-slate-600 font-medium mb-6">
                <?php echo e(__("Veuillez saisir votre mot de passe pour confirmer que vous souhaitez supprimer définitivement votre compte.")); ?>

            </p>

            <div class="space-y-2">
                <label for="password_del" class="block text-sm font-semibold text-gray-700"><?php echo e(__('Mot de passe')); ?></label>
                <input id="password_del" name="password" type="password" 
                    class="block w-full px-3 py-2 border border-gray-300 rounded-sm focus:ring-1 focus:ring-blue-600 focus:border-blue-600 transition-all h-[38px] text-sm font-semibold text-gray-700 bg-white"
                    placeholder="<?php echo e(__('Saisissez votre mot de passe')); ?>" />
                <?php if (isset($component)) { $__componentOriginalf94ed9c5393ef72725d159fe01139746 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf94ed9c5393ef72725d159fe01139746 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input-error','data' => ['messages' => $errors->userDeletion->get('password'),'class' => 'mt-2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('input-error'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['messages' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->userDeletion->get('password')),'class' => 'mt-2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf94ed9c5393ef72725d159fe01139746)): ?>
<?php $attributes = $__attributesOriginalf94ed9c5393ef72725d159fe01139746; ?>
<?php unset($__attributesOriginalf94ed9c5393ef72725d159fe01139746); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf94ed9c5393ef72725d159fe01139746)): ?>
<?php $component = $__componentOriginalf94ed9c5393ef72725d159fe01139746; ?>
<?php unset($__componentOriginalf94ed9c5393ef72725d159fe01139746); ?>
<?php endif; ?>
            </div>

            <div class="mt-8 flex justify-end gap-3">
                <button type="button" class="px-5 py-2 bg-white border border-gray-200 text-gray-700 rounded-sm hover:bg-gray-50 transition-all text-sm font-semibold shadow-sm h-[38px] inline-flex items-center"
                    x-on:click="$dispatch('close')">
                    <?php echo e(__('Annuler')); ?>

                </button>

                <button type="submit" class="px-5 py-2 bg-red-600 text-white rounded-sm hover:bg-red-700 transition-all text-sm font-semibold shadow-sm h-[38px] inline-flex items-center">
                    <?php echo e(__('Supprimer le compte')); ?>

                </button>
            </div>
        </form>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9f64f32e90b9102968f2bc548315018c)): ?>
<?php $attributes = $__attributesOriginal9f64f32e90b9102968f2bc548315018c; ?>
<?php unset($__attributesOriginal9f64f32e90b9102968f2bc548315018c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9f64f32e90b9102968f2bc548315018c)): ?>
<?php $component = $__componentOriginal9f64f32e90b9102968f2bc548315018c; ?>
<?php unset($__componentOriginal9f64f32e90b9102968f2bc548315018c); ?>
<?php endif; ?>
</section><?php /**PATH /home/fonix-sa/Bureau/Fonix projects/GASOS/resources/views/profile/partials/delete-user-form.blade.php ENDPATH**/ ?>