{% extends "base.html" %} {% from "_macros.html" import bar_chart %} {% block title %}Admin{% endblock %} {% macro review_form(n, with_decision) %}
{% if with_decision %} {% else %} {% endif %}
{% endmacro %} {% block content %}

ADMIN WORKSPACE

Operations overview

Review nanny applications, work through family introductions, and keep vetting status up to date.

Introduction requests{{ inquiries|length }}

Awaiting coordination

Pending approval{{ pending|length }}

Applications to review

Approved nannies{{ approved|length }}

Visible to matching families

{{ bar_chart("Introduction requests", "New requests received over the last six months.", inquiry_activity) }} {{ bar_chart("Nanny profile status", "Current application and approval totals.", nanny_status) }}

Introduction requests

Coordinate introductions between parents and nannies.

{% if not inquiries %}

No new requests.

{% endif %}
{% for i in inquiries %}

{{ i.parent_name }} · {{ i.parent_phone }} wants {{ i.nanny_name }} ({{ i.nanny_phone }})

{% if i.hired_at %}

Parent reported hired {{ i.hired_at }} UTC

{% endif %} {% if i.message %}

{{ i.message }}

{% endif %}

{{ i.created_at }} UTC

{% endfor %}

Pending approval

Review profile information and supporting documents.

{% if not pending %}

Nobody is waiting for review.

{% endif %}
{% for n in pending %}
{% if n.profile_image %}Profile picture of {{ n.full_name }}{% endif %}

{{ n.full_name }}

{{ n.phone }}{% if n.email %} · {{ n.email }}{% endif %} · {{ n.area }}, {{ n.county }} · {{ NANNY_ARRANGEMENTS[n.arrangement] }} · {{ n.years_experience }} yrs · {{ n.expected_salary|kes }}

{% if n.bio %}

{{ n.bio }}

{% endif %}

Skills: {{ (n.skills|labels(SKILLS)|join(', ')) or '—' }} · Languages: {{ n.languages|sort|join(', ') }}

{% if documents_by_nanny.get(n.id) %}

Documents: {% for document in documents_by_nanny[n.id] %} {{ DOCUMENT_TYPES[document.document_type] }}{% if not loop.last %}, {% endif %} {% endfor %}

{% endif %} {{ review_form(n, true) }}
{% endfor %}

Approved nannies

Update verification checks and profile approval.

{% for n in approved %}
{% if n.profile_image %}Profile picture of {{ n.full_name }}{% endif %}

{{ n.full_name }}

{{ n.phone }} · {{ n.area }} · {{ n.expected_salary|kes }}

{% if documents_by_nanny.get(n.id) %}

Documents: {% for document in documents_by_nanny[n.id] %} {{ DOCUMENT_TYPES[document.document_type] }}{% if not loop.last %}, {% endif %} {% endfor %}

{% endif %} {{ review_form(n, false) }}
{% endfor %}
{% endblock %}