{% extends "base.html" %} {% block title %}Ticketing Dashboard{% endblock %} {% block header %}Ticketing Dashboard{% endblock %} {% block content %} {% set recent_count = recent_tickets|length if recent_tickets else 0 %} {% set recent_critical_count = namespace(value=0) %} {% set recent_approval_count = namespace(value=0) %} {% for t in recent_tickets %} {% if t.priority == 'Critical' %} {% set recent_critical_count.value = recent_critical_count.value + 1 %} {% endif %} {% if t.status == 'Approval Pending' %} {% set recent_approval_count.value = recent_approval_count.value + 1 %} {% endif %} {% endfor %}
Ticketing System

Ticketing Dashboard

My Open: {{ my_open_count }} Total Open: {{ total_open_count }} {% if approval_pending_count > 0 %} Approval Pending: {{ approval_pending_count }} {% endif %}
Operations Feedback

Rework Tracking

Customer feedback and jobcard correction workflow
Monitor rework tickets, pending approvals, ownership, and recent customer feedback activity.
{% if current_user.has_perm('ticketing.approve') %} Approval Requests {% endif %} View Tickets
Ticketing Overview

Live Snapshot

Quick summary of active rework tickets and approval workload.
{{ recent_count }} Recent Ticket(s)
My Open Tickets
{{ my_open_count }}
Assigned to me or raised by me
Total Open Tickets
{{ total_open_count }}
All active ticketing workload
Approval Pending
{{ approval_pending_count }}
Waiting for operations head approval
Critical Recent
{{ recent_critical_count.value }}
Critical priority in recent tickets
Recent Activity
Recent Tickets
Latest customer feedback and rework tickets raised in the system.
{% if current_user.has_perm('ticketing.approve') %} Approvals {% endif %} All Tickets
{% if recent_tickets %}
{% for t in recent_tickets %} {% endfor %}
Ticket Jobcard Line Item Priority Status Raised By Created Action
{{ t.ticket_no }}
{{ t.feedback_type or 'Rework' }}
{% if t.jobcard %}
{{ t.jobcard.jobcard_code }}
{% if t.jobcard.quote %}
Quote: {{ t.jobcard.quote.quote_code }}
{% endif %} {% else %} - {% endif %}
{{ t.jobcard_service.service_name if t.jobcard_service else '-' }}
{% if t.jobcard_service and t.jobcard_service.quote_item %}
{{ t.jobcard_service.quote_item.item_name }}
{% endif %}
{% if t.priority == "Critical" %} Critical {% elif t.priority == "High" %} High {% elif t.priority == "Low" %} Low {% else %} {{ t.priority or 'Medium' }} {% endif %} {% if t.status in ['Closed', 'Resolved'] %} {{ t.status }} {% elif t.status in ['Rejected'] %} {{ t.status }} {% elif t.status in ['Approval Pending'] %} {{ t.status }} {% else %} {{ t.status }} {% endif %} {% if t.raised_by %}
{{ t.raised_by.name }}
{% else %} - {% endif %}
{% if t.created_at %}
{{ t.created_at.strftime('%d-%m-%Y') }}
{{ t.created_at.strftime('%I:%M %p') }}
{% else %} - {% endif %}
Open
{% else %}
No tickets found
No customer feedback or rework tickets have been raised yet.
{% endif %}
{% endblock %}