{% extends "base.html" %} {% load static %} {% block title %}{{ department.name }} - Department Details{% endblock %} {% block content %}

Department Details

{{ department.name|first|upper }}
{{ department.name }}
{{ department.code }}
{% if department.is_active %}Active{% else %}Inactive{% endif %}
Department Type

{{ department.get_department_type_display }}

Staff Count

{{ department.staff_count }} View Staff

Description
{{ department.description|linebreaks|default:"No description provided." }}
Contact Number

{{ department.contact_number|default:"Not provided" }}

Email

{% if department.email %} {{ department.email }} {% else %} Not provided {% endif %}

Location

{{ department.location|default:"Not specified" }}

Working Hours

{{ department.working_hours|default:"Not specified" }}

Created

{{ department.created_at|date:"F j, Y" }}

Last Updated

{{ department.updated_at|date:"F j, Y" }}

Department Staff
{% if staff_members %}
{% for staff in staff_members %} {% endfor %}
Name Designation Status Actions
{{ staff.user.first_name|first|upper }}{{ staff.user.last_name|first|upper }}
{{ staff.user.get_full_name }}
{{ staff.designation }} {% if staff.is_active %}Active{% else %}Inactive{% endif %}
{% else %}
No staff members

This department doesn't have any staff members assigned yet.

Add Staff Member
{% endif %}
Department Resources
{% if resources %}
{% for resource in resources %} {% endfor %}
Resource Category Quantity Status
{{ resource.name }} {{ resource.category }} {{ resource.quantity }} {{ resource.unit }} {{ resource.get_status_display }}
{% else %}
No resources

No resources have been assigned to this department.

Add Resource
{% endif %}
Quick Actions
Back to Departments Edit Department Manage Staff Manage Resources Delete Department
Department Head
{% if department.department_head %}
{{ department.department_head.user.first_name|first|upper }}{{ department.department_head.user.last_name|first|upper }}
{{ department.department_head.user.get_full_name }}

{{ department.department_head.designation }}

{% if department.department_head.email %} {% endif %} {% if department.department_head.phone %} {% endif %}
Change Department Head
{% else %}
No department head

No department head has been assigned yet.

Assign Department Head
{% endif %}
Department Statistics
Staff Distribution
Doctors
{{ doctor_count }}
Nurses
{{ nurse_count }}
Admin
{{ admin_count }}
Other
{{ other_count }}
Resource Allocation
Equipment
{{ equipment_count }}
Supplies
{{ supplies_count }}
Medications
{{ medications_count }}
Monthly Activity
{% endblock %} {% block js %} {% endblock %}