<?php use App\Helpers\Helper; ?>
<div class="mb-4">
  <h1 class="admin-page-title">Reports</h1>
  <p class="text-muted small">Generate and export reports in PDF and Excel formats</p>
</div>

<div class="row g-4">
  <?php foreach ([
    ['title'=>'Rent Collection','desc'=>'Monthly and yearly rent payment summary','icon'=>'bi-cash-stack','color'=>'green','url'=>'/admin/reports/rent-collection'],
    ['title'=>'Occupancy Report','desc'=>'Unit availability and occupancy rates','icon'=>'bi-door-open','color'=>'blue','url'=>'/admin/reports/occupancy'],
    ['title'=>'Income & Expenses','desc'=>'Financial summary with charts','icon'=>'bi-graph-up','color'=>'purple','url'=>'/admin/reports/income-expense'],
    ['title'=>'Tenant List','desc'=>'Full list of active and past tenants','icon'=>'bi-people','color'=>'orange','url'=>'/admin/reports/tenant-list'],
    ['title'=>'Maintenance Report','desc'=>'All maintenance requests and costs','icon'=>'bi-tools','color'=>'red','url'=>'/admin/reports/maintenance'],
    ['title'=>'Invoice Summary','desc'=>'Invoices sent, paid, and overdue','icon'=>'bi-receipt','color'=>'teal','url'=>'/admin/invoices'],
  ] as $r): ?>
  <div class="col-md-4">
    <a href="<?= APP_URL . $r['url'] ?>" class="text-decoration-none">
      <div class="admin-stat-card" style="cursor:pointer;hover:transform:translateY(-2px)">
        <div class="stat-icon-wrap <?= $r['color'] ?>"><i class="bi <?= $r['icon'] ?>"></i></div>
        <div>
          <div class="fw-700 text-dark"><?= $r['title'] ?></div>
          <div class="small text-muted"><?= $r['desc'] ?></div>
          <div class="small text-primary mt-1 fw-500">Generate Report <i class="bi bi-arrow-right"></i></div>
        </div>
      </div>
    </a>
  </div>
  <?php endforeach; ?>
</div>
