{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('Quotes') }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Quotes')} ] %} {{ page_header( icon_class='fas fa-file-contract', title_text=_('Quotes'), subtitle_text=_('Quotes for %(client_name)s', client_name=client.name), breadcrumbs=breadcrumbs ) }}
{% if quotes %}
{% for quote in quotes %} {% endfor %}
{{ _('Quote Number') }} {{ _('Title') }} {{ _('Date') }} {{ _('Valid Until') }} {{ _('Amount') }} {{ _('Status') }} {{ _('Actions') }}
{{ quote.quote_number }} {{ quote.title }} {{ quote.created_at.strftime('%Y-%m-%d') if quote.created_at else 'N/A' }} {% if quote.valid_until %} {{ quote.valid_until.strftime('%Y-%m-%d') }} {% if quote.is_expired %} ({{ _('Expired') }}) {% endif %} {% else %} {{ _('N/A') }} {% endif %} {{ "%.2f"|format(quote.total_amount) }} {{ quote.currency_code }} {{ quote.status|title }} {{ _('View') }}
{% else %}

{{ _('No quotes found.') }}

{% endif %}
{% endblock %}