{% extends 'base.html' %} {% block content %}
Announcements
{% if broadcasts %} {% for b in broadcasts %}
{{ b.title }}
{{ b.created_on.strftime('%d %b, %Y') }}

{{ b.content }}

{% if b.attachment_path %} {% set p = b.attachment_path.lower() %} {% if p.endswith('.png') or p.endswith('.jpg') or p.endswith('.jpeg') or p.endswith('.webp') or p.endswith('.gif') %} Announcement Image {% else %} View Attachment {% endif %} {% endif %} {% if b.id in read_ids %} Read {% else %} New {% endif %}
{% endfor %} {% else %}

No announcements available.

{% endif %}
Birthdays This Month
{% if birthdays %}
    {% for b in birthdays %}
  • {{ b.dob.strftime('%d %b') }}
    {{ b.full_name }}
    {{ b.department.name if b.department else '' }}
  • {% endfor %}
{% else %}

No birthdays this month.

{% endif %}
New Joinees
{% if new_joinees %}
    {% for n in new_joinees %}
  • {{ n.date_of_joining.strftime('%d %b') }}
    {{ n.full_name }}
    {{ n.department.name if n.department else '' }}
  • {% endfor %}
{% else %}

No new joinees this month.

{% endif %}
On Leave This Month (HOD Approved)
{% if employees_on_leave %}
    {% for lr in employees_on_leave %}
  • {{ lr.employee.full_name if lr.employee else 'Employee' }}
    {{ lr.start_date.strftime('%d %b') }} – {{ lr.end_date.strftime('%d %b') }} {% if lr.employee and lr.employee.department %} • {{ lr.employee.department.name }}{% endif %}
  • {% endfor %}
{% else %}

No approved leaves this month.

{% endif %}
Holidays This Month
{% if holidays %}
    {% for h in holidays %}
  • {{ h.date.strftime('%d %b') }}
    {{ h.name }} {% if h.type == 'optional' %} RH {% endif %}
  • {% endfor %}
{% else %}

No holidays this month.

{% endif %}
{% endblock %}