<?php $this->start('body'); ?>
<?php $year = (int)$this->data['year']; $month = (int)$this->data['month']; $qs = "?year=$year&month=$month"; ?>

<div class="d-flex align-items-center justify-content-between mb-3">
  <h5 class="mb-0 fw-semibold"><i class="fas fa-file-invoice me-2 text-muted"></i>Tax Returns</h5>
</div>

<p class="text-muted small mb-4">
  Monthly statutory returns for TRA filing. Every figure comes from the
  posted general ledger and the approved / paid payroll periods —
  nothing is entered by hand, and nothing is cached.
</p>

<div class="row g-3">
  <?php
    $tiles = [
      ['PAYE',      'paye',      'fa-user-tie',       'PAYE deducted per employee, with a schedule the accountant uploads to TRA. Due 7th of the following month.'],
      ['VAT',       'vat',       'fa-receipt',        'Output VAT from sales, less Input VAT from purchases. Net payable or refundable. Due 20th of the following month.'],
      ['Statutory', 'statutory', 'fa-people-arrows',  'NSSF (10% + 10%), SDL (3.5%), and WCF (0.5%) for the month, cross-checked against the payables ledger.'],
    ];
    foreach ($tiles as [$title, $action, $icon, $desc]):
  ?>
    <div class="col-md-4">
      <a class="card border-0 shadow-sm h-100 text-decoration-none text-reset"
         href="<?= PROOT; ?>TaxReturns/<?= $action . $qs; ?>">
        <div class="card-body">
          <div class="text-uppercase small text-muted mb-2" style="letter-spacing:.06em;">
            <i class="fas <?= $icon; ?> me-2 text-primary"></i><?= $title; ?>
          </div>
          <div class="fw-semibold mb-2 fs-5"><?= $title; ?></div>
          <div class="text-muted small"><?= $desc; ?></div>
        </div>
      </a>
    </div>
  <?php endforeach; ?>
</div>

<div class="alert alert-info small mt-4">
  <i class="fas fa-info-circle me-1"></i>
  Default period is <strong><?= date('F Y', strtotime(sprintf('%04d-%02d-01', $year, $month))); ?></strong> — the month currently being filed. Change it inside each report.
</div>
<?php $this->end(); ?>
