<?= $this->extend('layout/email_layout') ?>

<?= $this->section('content') ?>
<div style="font-size:16px; font-family:Arial, Helvetica, sans-serif; color:#333;">
  <p style="margin:0 0 12px 0;line-height:1.5;">
    Dear <?= esc($parent_name ?? 'Parent/Guardian') ?>,
  </p>

  <p style="margin:0 0 12px 0;line-height:1.5;">
    We regret to inform you that <strong><?= esc($student_name ?? 'your student') ?></strong>
    <?php if (!empty($class_section_name)): ?>(<?= esc($class_section_name) ?>)<?php endif; ?>
    has been <strong>dismissed</strong>
    <?php if (!empty($semester) && !empty($school_year)): ?> for <?= esc($semester) ?> <?= esc($school_year) ?><?php endif; ?>
    due to repeated unexcused absences<?php if (!empty($date_fmt)): ?> as of <?= esc($date_fmt) ?><?php endif; ?>.
  </p>

  <p style="margin:0 0 12px 0;line-height:1.5;">
    If you believe this decision was made in error or wish to discuss next steps, please contact the school at
    <a href="mailto:alrahma.isgl@gmail.com">school email</a>.
  </p>

  <p style="margin:0 0 12px 0;line-height:1.5;">
    Sincerely,<br>
    Al Rahma Sunday School
  </p>
</div>
<?= $this->endSection() ?>
