{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ quote.quote_number }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Quotes'), 'url': url_for('client_portal.quotes')}, {'text': quote.quote_number} ] %} {{ page_header( icon_class='fas fa-file-contract', title_text=quote.quote_number, subtitle_text=_('Quote Details'), breadcrumbs=breadcrumbs ) }}

{{ _('Client') }}

{{ quote.client.name if quote.client else 'N/A' }}

{% if quote.client and quote.client.email %}

{{ quote.client.email }}

{% endif %} {% if quote.client and quote.client.address %}

{{ quote.client.address }}

{% endif %}

{{ _('Quote Details') }}

{{ _('Title') }}: {{ quote.title }}

{{ _('Date') }}: {{ quote.created_at.strftime('%Y-%m-%d') if quote.created_at else 'N/A' }}

{% if quote.valid_until %}

{{ _('Valid Until') }}: {{ quote.valid_until.strftime('%Y-%m-%d') }}

{% endif %}

{{ _('Status') }}: {{ quote.status|title }}

{% if quote.is_expired %}

{{ _('This quote has expired.') }}

{% endif %}
{% if quote.description %}

{{ _('Description') }}

{{ quote.description }}

{% endif %} {% if quote.items %}

{{ _('Quote Items') }}

{% for item in quote.items %} {% endfor %}
{{ _('Description') }} {{ _('Quantity') }} {{ _('Unit Price') }} {{ _('Total') }}
{{ item.description }} {{ "%.2f"|format(item.quantity) }} {% if item.unit %}{{ item.unit }}{% endif %} {{ "%.2f"|format(item.unit_price) }} {{ quote.currency_code }} {{ "%.2f"|format(item.total_amount) }} {{ quote.currency_code }}
{% endif %}
{{ _('Subtotal') }}: {{ "%.2f"|format(quote.subtotal) }} {{ quote.currency_code }}
{% if quote.tax_rate > 0 %}
{{ _('Tax') }} ({{ "%.2f"|format(quote.tax_rate) }}%): {{ "%.2f"|format(quote.tax_amount) }} {{ quote.currency_code }}
{% endif %}
{{ _('Total') }}: {{ "%.2f"|format(quote.total_amount) }} {{ quote.currency_code }}
{% if quote.terms %}

{{ _('Terms & Conditions') }}

{{ quote.terms }}

{% endif %}
{% endblock %}