<?php
/** Tableau de bord (Tabler). */

use App\Core\Auth;
?>
<h2 class="h2 mb-3">Tableau de bord</h2>
<div class="card">
    <div class="card-body">
        <p>Bienvenue, <strong><?= e(Auth::name() !== '' ? Auth::name() : 'administrateur') ?></strong>.</p>
        <p class="text-secondary">Gérez le contenu du site depuis les sections ci-dessous.</p>
        <div class="d-flex gap-2 flex-wrap mt-3">
            <a class="btn btn-primary" href="<?= e(base_url('admin/galleries')) ?>"><i class="ti ti-photo me-1"></i>Galeries</a>
            <a class="btn" href="<?= e(base_url('admin/pages')) ?>"><i class="ti ti-file-text me-1"></i>Pages</a>
            <a class="btn" href="<?= e(base_url('admin/redirects')) ?>"><i class="ti ti-arrow-guide me-1"></i>Redirections</a>
            <a class="btn" href="<?= e(base_url('admin/settings')) ?>"><i class="ti ti-settings me-1"></i>Paramètres</a>
        </div>
    </div>
</div>
