
<?php
require_once __DIR__ . '/../config/user_functions.php';

session_start();
if (!isset($_SESSION['user'])) { header('Location: /smproduce/auth/login.php'); exit; }
$role = $_SESSION['user']['role'] ?? 'viewer';
if (!in_array($role, ['admin','warehouse','production'])) { http_response_code(403); die('Forbidden'); }
?>
<?php include('../includes/header.php'); ?>
<?php include('../includes/sidebar.php'); ?>

<h3 class="mb-3">Reports</h3>

<div class="card">
  <div class="card-header">Export info</div>
  <div class="card-body">
    <p>For now, use the column filters and the browser's print / copy features directly on each table (Inventory, Production, Cases, Activity Log).</p>
    <p>If vuoi, nella prossima iterazione posso aggiungere export CSV/Excel per ogni sezione.</p>
  </div>
</div>

<?php include('../includes/footer.php'); ?>
