<?php

require_once("./controller/auth.php");
require_once("./controller/permission.php");

// definição das metatags de SEO
$meta_title = "Vídeos - Workspace";
$meta_description = "";
$meta_canonical = "";
$meta_robots = "index, follow";
$meta_feature_image = "";
$page_favicon = "";

// definição dos sripts
$script = "./src/js/videos.js";
$functions = true;

?>

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

<!-- incluindo o head da página -->
<?php require_once("model/head/head.php"); ?>

<?php require_once("model/body/loading.php"); ?>
<div class="container hide" data-menu="videos" data-route="videos">
    <?php require_once("model/body/sidebar.php"); ?>
    <?php require_once("model/body/header.php"); ?>
    <main class="main videos">
        <div class="inner-container">
            <div class="title-flex">
                <h3 class="title">
                    Vídeos
                    <span class="numeroCadastrados">0</span>
                </h3>
                <div class="botao primary auto-width abre-modal" id="btnCadastrarVideo">
                    <span class="load" id="load"></span>
                    <span class="text">Adicionar novo</span>
                </div>
            </div>
            <section class="estabelecimentos-list">
                <div class="card">
                    <div class="empty hide">
                        <?php require_once("./assets/img/empty_search.svg"); ?>
                        <p>Os vídeos aparecerão aqui quando forem cadastrados</p>
                    </div>
                    <div class="load-alt center" id="loadVideo"></div>
                    <div class="table-scroll hide" id="tableVideo">
                        <table>
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Título</th>
                                    <th>Data</th>
                                    <th>Status</th>
                                    <th>Vídeo</th>
                                    <th>Ações</th>
                                </tr>
                            </thead>
                            <tbody id="listaVideo"></tbody>
                        </table>
                    </div>
                </div>
            </section>
        </div>
<?php require_once("model/body/modal_cadastro_video.php"); ?>
<?php require_once("model/body/modal_dados_video.php"); ?>
<?php require_once("model/body/modal_confirma_exclusao_video.php"); ?>
    </main>
</div>
<?php require_once("model/body/message.php"); ?>

<!-- inluindo o footer da página -->
<?php require_once("model/footer/footer.php"); ?>

</html>