{% extends "base.html" %}
{% block content %}
<div class="container mt-5 pt-5">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <h2>Painel Administrativo</h2>
        <a href="{% url 'admin_logout' %}" class="btn btn-ghost">Sair</a>
    </div>
    <div class="row g-4">
        {% for lottery in loterias %}
        <div class="col-md-4">
            <div class="card-soft p-4 h-100">
                <h3>{{ lottery.get_name_display }}</h3>
                <p class="text-muted">Números: 1 a {{ lottery.max_number }}</p>
                <hr>
                <a href="{% url 'edit_lottery' lottery.id %}" class="btn btn-brand w-100">Editar Números</a>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}
