<?= $this->extend('layout/main_layout') ?>
<?= $this->section('content') ?>
<div class="container-fluid">
    <div class="row">
        <main class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
            <div class="alert alert-success mt-4">
                <h4 class="alert-heading">Success!</h4>
                <p>The student(s) has/have been successfully enrolled.</p>
                <p>You will be redirected to the enroll page shortly...</p>
            </div>
        </main>
    </div>
</div>
<?= $this->endSection() ?>

<?= $this->section('scripts') ?>
<script>
    setTimeout(function() {
        window.location.href = "<?= base_url('/parent/enroll_classes'); ?>";
    }, 5000); // 2500 milliseconds = 2.5 seconds
</script>
<?= $this->endSection() ?>