File: /var/www/html/storage/framework/views/c7b6337e7820737b435f1412e3c36880.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Delete Account</title>
</head>
<body style="font-family: Arial, sans-serif; background-color: #f0f8ff; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0;">
<div style="background-color: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); max-width: 500px; width: 100%;">
<!-- ✅ Flash Messages -->
<?php if(session('success')): ?>
<div style="padding: 12px; margin-bottom: 20px; background-color: #d4edda; color: #155724; border-radius: 6px;">
<?php echo e(session('success')); ?>
</div>
<?php endif; ?>
<?php if(session('error')): ?>
<div style="padding: 12px; margin-bottom: 20px; background-color: #f8d7da; color: #721c24; border-radius: 6px;">
<?php echo e(session('error')); ?>
</div>
<?php endif; ?>
<!-- Information Section -->
<div style="margin-bottom: 30px;">
<h3 style="font-size: 24px; color: #333; margin-bottom: 20px;">Delete Your Account</h3>
<p style="color: #666; font-size: 14px;">
Deleting your account will permanently remove your data from our platform.
<strong>This action cannot be undone.</strong>
</p>
<ul style="font-size: 14px; color: #666; padding-left: 20px; line-height: 1.6;">
<li><strong>Step 1:</strong> Enter your email and request a One-Time Password (OTP).</li>
<li><strong>Step 2:</strong> Check your email and enter the OTP below.</li>
<li><strong>Step 3:</strong> Confirm deletion. Your account will be removed .</li>
<li><strong>Data Retention:</strong> Some non-personal data (e.g., transaction records) may be retained for compliance.</li>
</ul>
</div>
<!-- ✅ Email Form (only show if OTP not requested yet) -->
<?php if(!session('show_otp_form')): ?>
<form id="deleteAccountForm" action="<?php echo e(route('delete.account.request')); ?>" method="POST" style="margin-bottom: 20px;">
<?php echo csrf_field(); ?>
<div style="margin-bottom: 25px;">
<label style="display: block; font-weight: 500; color: #333; margin-bottom: 8px;">Email Address</label>
<div style="display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; padding: 8px;">
<div style="margin-right: 8px; color: #007bff;">
<i class="flaticon-mail"></i>
</div>
<input type="email" name="email" style="flex: 1; border: none; outline: none; font-size: 14px;" placeholder="Email Address" required>
</div>
</div>
<div style="display: grid;">
<button type="submit" style="background-color: #007bff; color: white; border: none; padding: 12px; border-radius: 4px; font-size: 16px; cursor: pointer;">
Request OTP
</button>
</div>
</form>
<?php endif; ?>
<!-- ✅ OTP Verification Form (only show if OTP was sent) -->
<?php if(session('show_otp_form')): ?>
<form id="verifyOTPForm" action="<?php echo e(route('delete.account.confirm')); ?>" method="POST" style="margin-bottom: 20px;">
<?php echo csrf_field(); ?>
<!-- Keep email hidden -->
<input type="hidden" name="email" value="<?php echo e(session('email')); ?>">
<div style="margin-bottom: 25px;">
<label style="display: block; font-weight: 500; color: #333; margin-bottom: 8px;">Enter OTP</label>
<div style="display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; padding: 8px;">
<div style="margin-right: 8px; color: #007bff;">
<i class="flaticon-lock"></i>
</div>
<input type="text" name="otp" style="flex: 1; border: none; outline: none; font-size: 14px;" placeholder="Enter OTP" required maxlength="6">
</div>
<!-- Inline validation error for OTP -->
<?php $__errorArgs = ['otp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<div style="color: #e3342f; font-size: 13px; margin-top: 5px;">
<?php echo e($message); ?>
</div>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<div style="display: grid;">
<button type="submit" style="background-color: #007bff; color: white; border: none; padding: 12px; border-radius: 4px; font-size: 16px; cursor: pointer;">
Confirm Deletion
</button>
</div>
</form>
<?php endif; ?>
</div>
</body>
</html>
<?php /**PATH /var/www/html/resources/views/livewire/auth/delete-account.blade.php ENDPATH**/ ?>