<?php
session_start();
if (!isset($_SESSION['user_id'])) {
    header('Location: login.php');
    exit;
}
require_once __DIR__ . '/../src/Core/Database.php';
require_once __DIR__ . '/../src/Includes/helpers.php';
use HatiApp\Core\Database;

$userName = $_SESSION['user_name'];
$userRole = $_SESSION['user_role'];
?>

<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <title>Hati App - Kalite ve Güvenlik</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<?php require_once __DIR__ . '/../src/Includes/header.php'; ?>
    <div class="header-actions">
        <h2>Kalite ve Güvenlik Yönetimi</h2>
    </div>

    <div class="card-grid-menu">
        <a href="masters.php" class="dashboard-card-icon" style="color: var(--accent-cyan);">
            <div class="card-icon-svg" style="background-color: #e0f7fa;">
                <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill="currentColor" viewBox="0 0 256 256"><path d="M208,80a64,64,0,1,0-64-64A64.07,64.07,0,0,0,208,80Zm-8,0a56,56,0,1,1-56-56A56.06,56.06,0,0,1,200,80ZM224,208a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8,56,56,0,0,1,56-56h64A56,56,0,0,1,224,208Zm-8,0a48,48,0,0,0-48-48H88a48,48,0,0,0-48,48H216Zm-72-96a8,8,0,0,0,0-16H80a8,8,0,0,0,0,16Z"></path></svg>
            </div>
            <span>Usta Değerlendirme</span>
        </a>

        <a href="company_evaluations.php" class="dashboard-card-icon" style="color: var(--primary);">
            <div class="card-icon-svg" style="background-color: #e3f2fd;">
                <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill="currentColor" viewBox="0 0 256 256"><path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM128,40a8,8,0,0,0-8,8V72a8,8,0,0,0,16,0V48A8,8,0,0,0,128,40ZM128,184a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184Z"></path></svg>
            </div>
            <span>Firma Değerlendirme</span>
        </a>
    </div>
</main>
</body>
</html>