<?php
require_once __DIR__ . '/../../app/core/bootstrap.php';
require_once __DIR__ . '/../../app/core/project_permissions.php';
require_once __DIR__ . '/../../app/core/access_guards.php';
auth_require_login();
$pdo = crm_pdo();
gp_require_staff_access($pdo);
$page_title = 'Reports';
include __DIR__ . '/../includes/header.php';
?>
<div class="page-header">
  <div class="page-header-title">
    <h1>Reports</h1>
    <span>Report center</span>
  </div>
</div>

<div class="grid-2">
  <div class="card">
    <div class="page-header-title"><h1 style="font-size:1.05rem">Work reports</h1><span>Hours, employees, cost</span></div>
    <div class="form-actions">
      <a class="btn btn-primary btn-sm" href="/public/reports/work_report.php">Open work report</a>
    </div>
  </div>
  <div class="card">
    <div class="page-header-title"><h1 style="font-size:1.05rem">Project cost reports</h1><span>Budget, labor, expenses, payments</span></div>
    <div class="form-actions">
      <a class="btn btn-primary btn-sm" href="/public/reports/project_cost_report.php">Open project cost report</a>
    </div>
  </div>
</div>
<?php include __DIR__ . '/../includes/footer.php'; ?>
