WizdomWeb/resources/views/pages/unsubscribe_confirm.php

43 lines
1.4 KiB
PHP

<?php
// File: unsubscribe_confirm.php
// Version: 2.0
// Purpose: Asks user to confirm they want to unsubscribe before processing.
use WizdomNetworks\WizeWeb\Core\View;
ob_start();
?>
<section class="verify-section section pt-5" style="padding-top: 7rem;">
<div class="container text-center">
<div class="icon mb-4" style="padding-top: 3rem;">
<i class="bi bi-check-circle text-success" style="font-size: 4rem;"></i>
</div>
<h2 class="mb-3">Are you sure you want to unsubscribe?</h2>
<p class="lead">
We'll miss you! If you'd still like to stop receiving emails from us, confirm below.
</p>
<div class="my-4">
<img src="/assets/img/unsubscribed.webp" alt="Unsubscribed" class="img-fluid rounded shadow" style="max-width: 400px;">
</div>
<form action="/unsubscribe" method="post" class="row justify-content-center mt-4">
<input type="hidden" name="email" value="<?= htmlspecialchars($email ?? '') ?>">
<div class="col-12 mb-3">
<textarea name="unsubscribe_reason" rows="3" class="form-control" placeholder="Optional: Let us know why you're unsubscribing..."></textarea>
</div>
<div class="col-12 text-center">
<button type="submit" class="btn btn-danger">Confirm Unsubscribe</button>
</div>
</form>
</div>
</section>
<?php
$html = ob_get_clean();
View::render('layouts/arsha', ['content' => $html, 'hideNavbar' => true]);
?>