{{ rate is not null ? rate_int ~ '%' : '—' }}
{{ translations.network_completion ?? 'Network completion' }}
{{ rate is not null ? rate_int ~ '%' : '—' }}
{{ net.tasks_done ?? 0 }}/{{ net.tasks_total ?? 0 }} {{ translations.tasks_done ?? 'tasks done' }}
· {{ net.shops_closed ?? 0 }}/{{ net.shops_total ?? 0 }} {{ translations.shops_closed ?? 'shops closed' }}
{{ net.tasks_done ?? 0 }} {{ translations.done ?? 'done' }}
{% if (net.tasks_skipped ?? 0) > 0 %}
{{ net.tasks_skipped }} {{ translations.skipped ?? 'skipped' }}
{% endif %}
{% if (net.tasks_failed ?? 0) > 0 %}
{{ net.tasks_failed }} {{ translations.failed ?? 'failed' }}
{% endif %}
{{ translations.shops_ranking ?? 'Shops ranking' }}
— {{ translations.completion_rate ?? 'completion rate' }}
{% for s in shops %}
{% set rank = loop.index %}
{% set cr = s.completion_rate ?? 0 %}
{% set prog_class = cr >= 80 ? 'excellent' : (cr >= 50 ? 'good' : 'bad') %}
{{ rank == 1 ? '🥇' : (rank == 2 ? '🥈' : (rank == 3 ? '🥉' : rank)) }}
{{ s.shop_name }}
{% if s.day_closed %}
{{ translations.closed ?? 'Closed' }}
{% else %}
{{ translations.open ?? 'Open' }}
{% endif %}
{% if (s.mandatory_missed ?? 0) > 0 %}
{{ s.mandatory_missed }} {{ translations.mandatory ?? 'mandatory' }}
{% endif %}
{{ s.shop_city }}
{{ s.completion_rate is not null ? s.completion_rate ~ '%' : '—' }}
{{ s.tasks_done }}
{{ translations.done ?? 'done' }}
{{ s.tasks_total - s.tasks_done - s.tasks_skipped - s.tasks_failed }}
{{ translations.pending ?? 'pending' }}
{{ s.tasks_skipped }}
{{ translations.skipped ?? 'skipped' }}
{{ s.tasks_failed }}
{{ translations.failed ?? 'failed' }}
{{ translations.no_task_data ?? 'No task data for this day.' }}
{% endif %}