{% load i18n %}
{% if node.staff.photo %} {{ node.staff.get_full_name }} {% else %} {{ node.staff.first_name|first }}{{ node.staff.last_name|first }} {% endif %}
{{ node.staff.get_full_name }} {% if node.staff.report_to %} Reports to: {{ node.staff.report_to.get_full_name }} {% endif %}
{{ node.staff.employee_id }} {% if node.staff.job_title %} | {{ node.staff.job_title }} {% endif %} {% if node.staff.hospital %} {{ node.staff.hospital.name }} {% endif %} {% if node.staff.department %} | {{ node.staff.department.name }} {% endif %} {% if node.has_children %} {{ node.direct_reports|length }} {% trans "Direct Report" %}{{ node.direct_reports|length|pluralize }} {% endif %} {% if node.staff.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% if node.has_children %}
{% endif %}
{% if node.has_children %}
{% for child in node.direct_reports %} {% include 'organizations/hierarchy_node.html' with node=child %} {% endfor %}
{% endif %}