<?php
include_once "../view/partials/banner/bannerVideoDetails.php";
include_once "../view/partials/search/eventBookSearch.php";
?>
<!-- ==========Event-About========== -->
<section class="event-about padding-top padding-bottom">
    <div class="container">
        <div class="row justify-content-between flex-wrap-reverse">
            <div class="col-lg-7 col-xl-6">
                <div class="event-about-content">
                    <div class="section-header-3 left-style m-0">
                        <span class="cate">¿Estás list@ para asistir?</span>
                        <h3 class="title"><span> <?= strftime('%b %d %Y', strtotime($event['evenfech'])); ?> </span> <br> <?= $event['evennomb']; ?><br></h3>
                        <p class="sub-title"><?= $event['evencome']; ?></p>
                        <p id="copied" class="sub-title"></p>
                        <a class="custom-button" id="clipboard">¡Compartir evento!</a>
                    </div>
                </div>
            </div>
            <div class="col-lg-5 col-md-7">
                <div class="event-about-thumb">
                    <img src="<?= $event['evenimg2']; ?>" alt="event_image">
                </div>
                <br>
                <div class="widget-1 widget-facility">
                    <div class="section-header-3 left-style m-0">
                        <span class="cate">Localidades</span>
                    </div>
                    <div class="widget-1-body">
                        <ul>
                            <?php for ($i = 0; $i < count($localidades); $i++) : ?>

                                <li>
                                    <a href="#0">
                                        <span class="img"><img src="images/event/ticket/ticket03.png" alt="sidebar"></span>
                                        <span class="cate"><?= $localidades[$i]['locanomb']; ?>&nbsp;&nbsp;$<?= number_format($localidades[$i]['locavabo'], 0, ",", "."); ?><sup><?= $localidades[$i]['cavaaux2']; ?></sup></span>

                                    </a>
                                </li>
                            <?php endfor; ?>
                        </ul>
                    </div>
                    <br>


                    <a href="<?= getUrl("events", "Events", "showCheckout", array("idE" => $event['evenid'])); ?>" class="custom-button">Comprar Boletos</a>

                </div>
                <br>
            </div>
        </div>
    </div>
</section>
<!-- ==========Event-About========== -->

<?php if ($event['evencate'] != 23) {

    // include_once "../view/partials/template/gallerySection.php";
} elseif ($event['evencate'] != 22 && $event['evencate'] != 23) {
    // include_once "../view/partials/template/speakerSection.php";
}
?>

<!-- ==========Statistics-Section========== -->
<section class="statistics-section padding-top padding-bottom bg_img pb-lg-0" data-background="images/about/fans.png">
    <div class="container">
        <div class="section-header-3">
            <span class="cate">Lo que hemos logrado</span>
            <h2 class="mb-3 capital">Estadisticas del evento</h2>
            <p>A continuaci&oacute;n te mostramos la informaci&oacute;n general de este evento...</p>
        </div>
        <div class="statistics-wrapper">
            <div class="row mb--20">
                <div class="col-md-4">
                    <div class="stat-item">
                        <div class="stat-thumb">
                            <img src="images/statistics/stat01.png" alt="statistics">
                        </div>
                        <div class="stat-content">
                            <h3 class=" counter-item odometer" data-odometer-final="<?= $event['evencabo']; ?>"></h3>
                            <span class="info">Tickets emitidos</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="stat-item">
                        <div class="stat-thumb">
                            <img src="images/statistics/stat02.png" alt="statistics">
                        </div>
                        <div class="stat-content">
                            <h3 class="counter-item odometer" data-odometer-final="<?= $event['evenfech']; ?>"></h3>
                            <span class="info">Fecha</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="stat-item">
                        <div class="stat-thumb">
                            <img src="images/statistics/stat03.png" alt="statistics">
                        </div>
                        <div class="stat-content">
                            <h3 class=" counter-item odometer" data-odometer-final="28"></h3>
                            <span class="info">Talented Speakers</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- ==========Sponsors-Section========== -->
<section class="event-details padding-top">
    <?php include_once "../view/partials/template/sponsors.php"; ?>
</section>
<!-- ==========FAQ-Section========== -->
<section class="faq-section padding-top">
    <div class="container">
        <div class="section-header-3">
            <span class="cate">¿Necesitas ayuda?</span>
            <h2 class="mb-3 capital">Preguntas Frecuentes</h2>
            <p>Visita nuestra secci&oacute;n de preguntas frecuentes y resuelve tus dudas.</p>
            <a class="custom-button" href="<?= getUrl("misc", "Misc", "showFaqs"); ?>">IR a la secci&oacute;n</a>
        </div>
    </div>
</section>