{% extends "base.html" %}
{% block title %}Administration{% endblock %}
{% block content %}
<div class="container-fluid">
    <h1 class="h3 mb-4">Administration</h1>
    
    <div class="row">
        <div class="col-md-3 mb-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-people display-4"></i>
                    <h3>{{ stats.users_count }}</h3>
                    <p class="text-muted">Utilisateurs</p>
                </div>
            </div>
        </div>
        <div class="col-md-3 mb-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-person-badge display-4"></i>
                    <h3>{{ stats.staff_count }}</h3>
                    <p class="text-muted">Personnel</p>
                </div>
            </div>
        </div>
        <div class="col-md-3 mb-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-building display-4"></i>
                    <h3>{{ stats.buildings_count }}</h3>
                    <p class="text-muted">Bâtiments</p>
                </div>
            </div>
        </div>
        <div class="col-md-3 mb-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-door-open display-4"></i>
                    <h3>{{ stats.rooms_count }}</h3>
                    <p class="text-muted">Salles</p>
                </div>
            </div>
        </div>
    </div>
    
    <div class="card">
        <div class="card-header">
            <h5 class="mb-0">Actions rapides</h5>
        </div>
        <div class="card-body">
            <a href="{{ url_for('admin.users') }}" class="btn btn-outline-primary me-2">
                <i class="bi bi-people"></i> Utilisateurs
            </a>
            <a href="{{ url_for('admin.permissions') }}" class="btn btn-outline-secondary">
                <i class="bi bi-shield"></i> Permissions
            </a>
        </div>
    </div>
</div>
{% endblock %}