{% extends "base.html" %}
{% block content %}

<div class="container mt-4">

    <h3>Announcements</h3>
<a href="{% url 'tenant_announcements' %}" class="btn btn-info">
    <i class="bi bi-bell"></i> Notifications
</a>
    {% for a in announcements %}
        <div class="card mb-3 p-3">
            <h5>{{ a.title }}</h5>
            <p>{{ a.message }}</p>
            <small>{{ a.created_at }}</small>
        </div>
    {% empty %}
        <p>No announcements yet.</p>
    {% endfor %}

</div>

{% endblock %}