{% extends "base.html" %}
{% block title %}Horaires — Planning{% endblock %}

{% block content %}
<div class="container-fluid">
    <h1 class="mb-4"><i class="bi bi-clock"></i> Horaires de travail</h1>
    <div class="card"><div class="card-body">
        {% if schedules %}
        <div class="table-responsive">
            <table class="table table-hover">
                <thead><tr><th>Date</th><th>Heure début</th><th>Heure fin</th><th>Notes</th></tr></thead>
                <tbody>
                    {% for s in schedules %}
                    <tr><td>{{ s.date }}</td><td>{{ s.start_time }}</td><td>{{ s.end_time }}</td><td>{{ s.notes or '-' }}</td></tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        {% else %}
        <p class="text-muted">Aucun horaire défini.</p>
        {% endif %}
    </div></div>
</div>
{% endblock %}