<!-- ********************************************************************* -->
<!-- **************** Obrigatório para o painel funcionar **************** -->
<!-- ********************************************************************* -->
<?php
    require_once('../../pp1.php');
?>
<!-- ********************************************************************* -->
<!-- ********************************************************************* -->
<!-- ********************************************************************* -->
<!DOCTYPE html>
<html lang="pt-br">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Painel de chamada do profissional</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f4f6f8;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container-custom {
            background-color: #ffffff;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
            margin-bottom: 20px;
        }

        .large-text {
            font-size: 2.5em;
        }

        .qr-code,
        .image-gallery {
            width: 200px;
            height: 200px;
        }

        .flex-container {
            display: flex;
            justify-content: space-between;
        }

        .section-title {
            font-size: 1.5em;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .footer {
            margin-top: auto;
            margin-bottom: 20px;
        }
        
        .rounded-container {
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
            background-color: #ffffff;
            margin-bottom: 20px;
        }
        
         .blinking-text {
            color: red;
            font-weight: bold;
            animation: blink 1s step-end infinite;
        }

        @keyframes blink {
            50% {
                opacity: 0;
            }
        } 
      .image-gallery {
               width: 400px;
               height: 200px;
        }

    </style>
</head>

<body>
    <header class="bg-primary text-white text-center p-4">
        <h4><?php echo $linha_cab;?></h4>
    </header>

    <div class="container mt-4 flex-container">
        <div id="chamando" class="mr-4" style="flex: 4;">
        </div>

        <div style="flex: 1/2; margin-left: 2em;">
            <section aria-label="Acompanhe pelo Celular" class="rounded-container">
                <h4 class="section-title mb-4">Acompanhe pelo Celular</h4>
                <table class="table">
                    <tbody>
                        <tr>
                            <td>
                            
                                <!-- ********************************************************************* -->
                                <!-- **************** Obrigatório para o painel funcionar **************** -->
                                <!-- ********************************************************************* -->
                                <?php
                                    if ($qrcode == 1){
                                        echo $img_qrcode;
                                    }
                                ?>
                                <!-- ********************************************************************* -->
                                <!-- ********************************************************************* -->
                                <!-- ********************************************************************* -->

                            </td>
                        </tr>
                    </tbody>
                </table>
            </section>
        </div>
    </div>

    <div class="container mt-1">
        <div class="row">
            <div class="col-md-4">
            <section aria-label="Galeria de imagem" class="rounded-container">
        <h4 class="section-title mb-3">Galeria de imagens</h4>
        <img src="assets/img/anigif.gif" alt="Imagem da Secretaria" class="image-gallery img-fluid">
             </section>
             </div>
            <div id="chamados" class="col-md-8">
            </div>
        </div>
    </div>

    <footer class="bg-dark text-white text-center p-4 footer">
        <p>&copy; 2023 - Todos os direitos reservados</p>
    </footer>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
</body>

</html>
