<!DOCTYPE html>

<html lang="en">



<head>

    <base href="<?= (!is_null($setting) && !empty($setting->getUrl())) ? $setting->getUrl() : URL_BASE; ?>">

    <meta charset="utf-8">

    <meta http-equiv="content-language" content="pt-br">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <meta http-equiv="cache-control" content="public"/>

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="robots" content="noindex, nofollow">

    

    <title>JURÍDICO MAZUKIM | <?= (!is_null($setting) && !empty($setting->getTitle())) ? $setting->getTitle() : 'Template Suits' ?></title>

    <?php require 'links.php'; ?>

    <link href="public/admin/js/plugins/jquery.nestable/nestable.css" type="text/css" rel="stylesheet" media="screen,projection">



</head>



<body>



    <main class="login">

        <div class="fundo"></div>

        <div class="box">

            <figure>

                <img style="    filter: invert(1);" src='public/admin/icons/denunciar.png' class="brand-logo">

                <figcaption>Logo da marca - <?= (!is_null($setting) && !empty($setting->getTitle())) ? $setting->getTitle() : 'Template Suits' ?></figcaption>

            </figure>

            <fieldset>

                <?php if(isset($_SESSION['mensagem'])): ?>

                    <div id="card-alert" class="card <?= ($_SESSION['tipo'] == 'danger') ? 'red' : 'green' ?>">

                        <div class="card-content white-text">

                        <?php if($_SESSION['tipo'] == 'danger'): ?>

                            <p><i class="mdi-alert-error"></i> Erro: <?= $_SESSION['mensagem']; ?></p>

                        <?php else: ?>

                            <p><i class="mdi-navigation-check"></i> Sucesso: <?= $_SESSION['mensagem']; ?></p>

                        <?php endif; ?>

                        </div>

                        <button type="button" class="close white-text" data-dismiss="alert" aria-label="Close">

                            <span aria-hidden="true">×</span>

                        </button>

                    </div>

                <?php

                    unset($_SESSION['tipo']);

                    unset($_SESSION['mensagem']);

                endif;

                ?>

                <h1>JURÍDICO MAZUKIM</h1>

                <p>Faça aqui a sua denuncia:</p>

                <form method="POST" action="denuncie/persist">

                    <label for="name">Qual seu nome?:</label>
                    <input type="text" name="name" placeholder="Insira seu nome" required>

                    <label for="email">Coloque aqui seu email:</label>
                    <input type="text" name="email" placeholder="exemplo@email.com" required>
                                <div class="center">
                                    <label for="description">Escreva aqui a sua denuncia</label>
                                    <textarea name="description" class="editor" required>
                                        <?= (isset($service)) ? $service->getDescription() : '<p>Insira uma observação<p/>'; ?>
                                    </textarea>
                                </div>

                    <button type="submit" class="btn waves-effect">Enviar</button>

                </form>

            </fieldset>

        </div>

    </main>



    <?php require 'scripts.php'; ?>

    <!--nestable -->

    <link href="public/admin/js/plugins/jquery.nestable/nestable.css" type="text/css" rel="stylesheet" media="screen,projection">

    

</body>



</html>