<?php
require 'conexao/conexao.php';
require 'sessao.php';
require 'configuacoes.php';
if (isset($_SESSION['filtros'])) {
    // Remove a variável de sessão 'filtros'
    unset($_SESSION['filtros']);
}
?>

<!DOCTYPE html>
<html lang="pt-br">

<head>
    <meta charset="utf-8" />
    <title>Dashboard</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Guilherme Bathist" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="../assets/images/logo-sm.png">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">

    <!-- App css -->
    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/app.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/style.css" rel="stylesheet" type="text/css" />

    <!--Material Icon -->
    <link rel="stylesheet" href="https://cdn.materialdesignicons.com/6.5.95/css/materialdesignicons.min.css">

</head>

<body>

    <!-- Navigation Bar-->
    <?php
    include('geral/menu.php');
    ?>
    <!-- End Navigation Bar-->

    <!-- ============================================================== -->
    <!-- Start Page Content here -->
    <!-- ============================================================== -->

    <div class="wrapper dashboard">
        <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <h4 class="page-title">Dashboard</h4>
                    </div>
                </div>
            </div>
            <!-- end page title -->


            <div class="row">

                <div class="col-4">
                    <a href="comercial/painel-gerencial.php">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-badge-account-horizontal-outline"></i></h1>
                            <h4 class="header-title mt-0">Visão Comercial</h4>
                            <p class="text-muted">Avaliação 360</p>
                        </div>
                    </a>
                </div>

                <div class="col-4">
                    <a href="#" onclick="showAlert()">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-clipboard-edit-outline"></i></h1>
                            <h4 class="header-title mt-0">Visão MONITORAMENTO PCP</h4>
                            <p class="text-muted">Avaliação 360</p>
                        </div>
                    </a>
                </div>

                <div class="col-4">
                    <a href="monitoramento/painel_gerencial_monitoramento.php">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-clipboard-edit-outline"></i></h1>
                            <h4 class="header-title mt-0">Resultados PCP</h4>
                            <p class="text-muted">Produtividade do Laboratório</p>
                        </div>
                    </a>
                </div>
                <div class="col-4">
                    <a href="metas_comercial/index.php">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-badge-account-horizontal-outline"></i></h1>
                            <h4 class="header-title mt-0">Metas Comerciais</h4>
                            <p class="text-muted">Adicione as metas do time de Vendas</p>
                        </div>
                    </a>
                </div>
                <div class="col-4">
                    <a href="metas_pcp/index.php">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-clipboard-edit-outline"></i></h1>
                            <h4 class="header-title mt-0">Metas PCP</h4>
                            <p class="text-muted">Adicione as metas do Laboratório</p>
                        </div>
                    </a>
                </div>
                <div class="col-4">
                    <a href="estoque/index.php">
                        <div class="card-box text-center">
                            <h1><i class="mdi mdi-view-grid-outline"></i></h1>
                            <h4 class="header-title mt-0">Estoque</h4>
                            <p class="text-muted">Relatório de Estoque</p>
                        </div>
                    </a>
                </div>



            </div>
            <!-- end row -->

        </div> <!-- end container -->
    </div>
    <!-- end wrapper -->

    <!-- ============================================================== -->
    <!-- End Page content -->
    <!-- ============================================================== -->
    <!-- Footer Start -->
    <?php
    include('geral/footer.php');
    ?>
    <!-- end Footer -->

    <?php
    include('geral/mensagens_modais.php');
    ?>

    <script>
        function showAlert() {
            alert("Página em desenvolvimento, disponível em breve");
        }
    </script>

    <!-- Vendor js -->
    <script src="../assets/js/vendor.min.js"></script>

    <!-- knob plugin -->
    <script src="../assets/libs/jquery-knob/jquery.knob.min.js"></script>
    <!-- App js-->
    <script src="../assets/js/app.min.js"></script>

    <script src="geral/javascript.js"></script>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            // Remove status and message parameters from URL
            const url = new URL(window.location);
            url.searchParams.delete('status');
            url.searchParams.delete('message');
            window.history.replaceState({}, document.title, url);
        });
    </script>
</body>

</html>