{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('Notifications') }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Notifications')} ] %} {{ page_header( icon_class='fas fa-bell', title_text=_('Notifications'), subtitle_text=_('Stay updated on your projects and invoices'), breadcrumbs=breadcrumbs ) }}
{% if unread_count > 0 and filter_type == 'all' %}
{% endif %}
{% if notifications %}
{% for notification in notifications %}
{% if not notification.is_read %}
{% else %}
{% endif %}

{{ notification.title }}

{{ notification.type|replace('_', ' ')|title }} {{ notification.created_at|user_datetime if notification.created_at else _('N/A') }}

{{ notification.message }}

{% if notification.link_url %} {% endif %}
{% if not notification.is_read %}
{% else %}
{% endif %}
{% endfor %}
{% else %}

{{ _('No Notifications') }}

{% if filter_type == 'unread' %} {{ _('You have no unread notifications. All caught up!') }} {% else %} {{ _('You have no notifications yet. Notifications will appear here when there are updates to your projects or invoices.') }} {% endif %}

{% endif %} {% endblock %}