<?php $this->start('body'); ?>
<div class="d-flex align-items-center justify-content-between mb-3">
  <h5 class="mb-0 fw-semibold"><i class="fas fa-chart-line me-2 text-muted"></i>Financial Reports</h5>
</div>

<p class="text-muted small mb-4">
  Three canonical reports pulled directly from the general ledger — every
  posted, non-voided journal entry included. Use them for month-end review,
  audit prep, and management reporting.
</p>

<div class="row g-3">
  <?php
    $tiles = [
      ['Trial Balance',   'trialBalance', 'fa-scale-balanced', 'Every account with a non-zero balance for the period, with a debit / credit split and a total-match check.'],
      ['Profit &amp; Loss', 'pnl',          'fa-hand-holding-dollar', 'Revenue minus expenses for the period, showing the net income (or loss) posted to retained earnings.'],
      ['Balance Sheet',   'balanceSheet', 'fa-building-columns',   'Assets, liabilities, and equity as of a specific date. Includes the unclosed period\'s net income in equity.'],
      ['Cash Flow',       'cashFlow',     'fa-arrows-turn-to-dots', 'Direct-method cash-flow statement: operating, investing, financing sections. Reconciles to actual cash balances.'],
    ];
    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; ?>FinancialReports/<?= $action; ?>">
        <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>
<?php $this->end(); ?>
