{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ staff.get_full_name }} - {% trans "Staff Details" %}{% endblock %} {% block content %}
{% trans "Back to Staff List" %}
{% trans "Staff" %} {{ staff.get_full_name }} {% if staff.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{{ staff.first_name|first }}{{ staff.last_name|first }}

{{ staff.get_full_name }}

{{ staff.job_title|default:"-" }} | {{ staff.get_staff_type_display }}

{% if staff.is_head %} {% trans "Department Head" %} {% endif %}
{% if user.is_px_admin or user.is_hospital_admin %} {% trans "Edit" %} {% endif %}

{% trans "Personal Information" %}

{{ staff.first_name }}
{{ staff.last_name }}
{{ staff.first_name_ar|default:"-" }}
{{ staff.last_name_ar|default:"-" }}
{% if staff.license_number %}
{{ staff.license_number }}
{% endif %} {% if staff.specialization %}
{{ staff.specialization }}
{% endif %}

{% trans "Organization" %}

{{ staff.hospital.name }}
{{ staff.department.name|default:"-" }}
{{ staff.employee_id|default:"-" }}
{{ staff.section|default:"-" }}
{{ staff.subsection|default:"-" }}

{% trans "Contact Information" %}

{% if staff.email %} {{ staff.email }} {% else %} - {% endif %}
{% if staff.phone %} {{ staff.phone }} {% else %} - {% endif %}

{% trans "Hierarchy" %}

{% trans "Reports To" %} {% if staff.report_to %} {{ staff.report_to.get_full_name }} {% else %} - {% endif %}
{% trans "Direct Reports" %} {% if staff.direct_reports.exists %}
{% for direct_report in staff.direct_reports.all %} {{ direct_report.get_full_name }} {% endfor %}
{% else %} - {% endif %}

{% trans "User Account" %}

{% if staff.user %}
{% trans "Account Linked" %} {% trans "Staff can log in to the system" %}
  • {% trans "Username" %} {{ staff.user.username }}
  • {% trans "Active" %} {% if staff.user.is_active %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %}
  • {% trans "Created" %} {{ staff.user.date_joined|date:"M d, Y" }}
{% if user.is_px_admin or user.is_hospital_admin %}
{% endif %} {% else %}
{% trans "No User Account" %} {% trans "Staff cannot log in yet" %}

{% trans "Create a user account to allow this staff member to log in to the system." %}

{% if user.is_px_admin or user.is_hospital_admin %} {% if staff.email %} {% else %}

{% trans "Add email address first" %}

{% endif %} {% endif %} {% endif %}

{% trans "System Info" %}

  • {% trans "Status" %} {% if staff.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
  • {% trans "Created" %} {{ staff.created_at|date:"M d, Y" }}
  • {% trans "Updated" %} {{ staff.updated_at|date:"M d, Y" }}
{% endblock %} {% block extra_js %} {% endblock %}