<?php
/** @var \BotGuard\Core\View $this */
$this->layout('layouts.app');
?>
<div class="d-flex justify-content-between align-items-center mb-3">
    <h1 class="h4 mb-0">Detection Logs</h1>
    <div class="dropdown">
        <button class="btn btn-outline-secondary btn-sm dropdown-toggle" data-bs-toggle="dropdown" type="button">
            <i class="bi bi-download"></i> Export
        </button>
        <ul class="dropdown-menu dropdown-menu-end">
            <li><a class="dropdown-item" href="/dashboard/export/csv"><i class="bi bi-filetype-csv"></i> CSV</a></li>
            <li><a class="dropdown-item" href="/dashboard/export/xlsx"><i class="bi bi-file-earmark-excel"></i> Excel (.xlsx)</a></li>
            <li><a class="dropdown-item" href="/dashboard/export/pdf"><i class="bi bi-file-earmark-pdf"></i> PDF</a></li>
        </ul>
    </div>
</div>
<div class="card border-0 shadow-sm">
    <div class="card-body">
        <?= $this->partial('partials.results_table', ['results' => $results]) ?>
    </div>
</div>
