prepare('SELECT * FROM macro_areas WHERE client_id = :client_id ORDER BY nome ASC'); $stmt->execute(['client_id' => $client_id]); $macro_areas = $stmt->fetchAll(PDO::FETCH_ASSOC); $total = count($macro_areas); $active = 0; $archived = 0; foreach ($macro_areas as $area) { if ($area['ativo']) { $active++; } else { $archived++; } } ?>
| # | Nome | Descrição | Status |
|---|---|---|---|
| Nenhuma macro área encontrada. | |||
Total de Macro Áreas: | Ativas: | Arquivadas: