{% extends "base.html" %} {% block content %}
{% if employee.photo_url %}
{% else %}
{{ employee.full_name[:1].upper() }}
{% endif %}

Hi, {{ employee.first_name or employee.full_name.split(' ')[0] }}!

{{ employee.position }} | {{ employee.department }}
{% if enabled_modules.hris %} {% include "hris/self/_hub_widget.html" %} {% endif %} {% if enabled_modules.erp and erp_data.urgent_tasks %}
Urgent Tasks
{{ erp_data.pending_tasks_count }} Total
    {% for task in erp_data.urgent_tasks %}
  • {{ task.title }}
    Due: {{ task.end_date.strftime('%b %d') }}
  • {% endfor %}
{% endif %} {% if enabled_modules.crm %}{% include "crm/self/_hub_widget.html" %}{% endif %} {% if enabled_modules.collab %}{% include "collaboration/self/_hub_widget.html" %}{% endif %}
Recent Activity
    {% set activities = [] %} {% if enabled_modules.erp and erp_data.recent_tasks %} {% for task in erp_data.recent_tasks %} {% set _ = activities.append({'t': task.title, 'd': task.updated_at, 's': task.status.name, 'c': task.status.color, 'i': 'fa-list-check', 'clr': 'primary', 'm': 'ERP'}) %} {% endfor %} {% endif %} {% if enabled_modules.hris %} {% for leave in hris_data.recent_leaves %} {% set _ = activities.append({'t': 'Leave Request', 'd': leave.created_at, 's': leave.status.name, 'c': hris_data.leave_statuses[leave.status.slug].color if leave.status.slug in hris_data.leave_statuses else 'secondary', 'i': 'fa-calendar-day', 'clr': 'info', 'm': 'HRIS'}) %} {% endfor %} {% endif %} {% for act in activities|sort(attribute='d', reverse=True) %}
  • {{ act.t }}
    {{ act.m }} • {{ act.d.strftime('%b %d') }}
    {{ act.s }}
  • {% else %}
  • No recent activity.

  • {% endfor %}
{% endblock %} {% block scripts %} {% endblock %}