{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge, empty_state %} {% block content %} {% set breadcrumbs = [ {'text': 'Quotes'} ] %} {{ page_header( icon_class='fas fa-file-contract', title_text='Quotes', subtitle_text='Manage client quotes', breadcrumbs=breadcrumbs, actions_html='
' + ('Hide Analytics' if show_analytics else 'Show Analytics') + '' + ('Create Quote' if (current_user.is_admin or has_permission('create_quotes')) else '') + '
' ) }} {% if show_analytics and analytics %}

{{ _('Total Quotes') }}

{{ analytics.total_quotes }}

{{ _('Total Value') }}

{{ "%.2f"|format(analytics.total_value) }} EUR

{{ _('Acceptance Rate') }}

{{ analytics.acceptance_rate }}%

{{ _('Avg Quote Value') }}

{{ "%.2f"|format(analytics.avg_value) }} EUR

{{ _('Quotes by Status') }}

{% for status, count in analytics.quotes_by_status.items() %}
{{ _(status) }} {{ count }}
{% endfor %}

{{ _('Top Clients by Quotes') }}

{% for client_data in analytics.quotes_by_client %}
{{ client_data.name }} {{ client_data.count }} ({{ "%.2f"|format(client_data.total) }} EUR)
{% endfor %}
{% endif %}

{{ _('Filter Quotes') }}

{% include 'quotes/_quotes_list.html' %}
{% endblock %} {% block scripts_extra %} {% endblock %}