Healthy Watch – Ticket Dashboard

New Tickets

{{ $new ?? 0 }}

In Progress

{{ $inprogress ?? 0 }}

Resolved

{{ $resolved ?? 0 }}

Frequent Issues

{{ $frequentIssues ?? 0 }}

Response Time
{{ number_format($averageResponseTime, 1) }} hrs
{{ $averageResponseTime <= 2.4 ? '15%' : '8%' }} {{ $averageResponseTime <= 2.4 ? 'faster' : 'slower' }}
Satisfaction Rate
{{ number_format($satisfactionRate, 1) }}%
{{ abs($satisfactionRate - 94) }}% {{ $satisfactionRate >= 94 ? 'increase' : 'decrease' }}
Active Users
{{ $activeUsers }}
{{ $activeUsers >= 38 ? 'Growing' : 'Stable' }}
System Health
{{ number_format($systemHealth, 1) }}%
{{ $systemHealth >= 95 ? 'Optimal' : ($systemHealth >= 90 ? 'Good' : 'Attention') }}
Avg Resolution
{{ number_format($avgResolutionTime, 1) }} hrs
Average time to resolve
Critical Tickets
{{ $criticalTickets }}
{{ $criticalTickets <= 3 ? 'Under Control' : 'Action Needed' }}
Overdue Tickets
{{ $overdueTickets }}
{{ $overdueTickets <= 2 ? 'On Track' : 'Delayed' }}
Growth Rate
{{ $ticketGrowthRate > 0 ? '+' : '' }}{{ number_format($ticketGrowthRate, 1) }}%
vs last month

Monthly Ticket Report

Status Overview

Recently Raised Tickets

@if(isset($recentTickets) && $recentTickets->count() > 0) @foreach ($recentTickets as $t) @endforeach @else @endif
Ticket ID Issue Customer Priority Status Action
{{ $t->ticket_number ?? 'N/A' }} {{ $t->issue ?? 'N/A' }} {{ $t->customer_name ?? 'N/A' }} {{ $t->priority ?? 'Medium' }} {{ $t->status ?? 'N/A' }}
No recent tickets found

Resolved Summary

@if(isset($resolvedSummary) && $resolvedSummary->count() > 0) @foreach ($resolvedSummary as $r) @endforeach @else @endif
Ticket ID Issue Technician Resolved Date Status
{{ $r->ticket_number ?? 'N/A' }} {{ $r->issue ?? 'N/A' }} {{ $r->technician ?? 'N/A' }} {{ $r->updated_at ?? 'N/A' }} Completed
No resolved tickets found
@if(isset($departmentStats) && $departmentStats->count() > 0)

Department Performance

@foreach ($departmentStats as $dept) @endforeach
Department Total Tickets Resolved Resolution Rate Avg Resolution Time
{{ $dept->department ?? 'N/A' }} {{ $dept->total_tickets ?? 0 }} {{ $dept->resolved_tickets ?? 0 }} @if($dept->total_tickets > 0) {{ round(($dept->resolved_tickets / $dept->total_tickets) * 100, 1) }}% @else 0% @endif {{ $dept->avg_resolution_hours ? number_format($dept->avg_resolution_hours, 1) . ' hrs' : 'N/A' }}
@endif @if(isset($systemStats) && $systemStats->count() > 0)

System Issues Distribution

@foreach ($systemStats as $sys) @endforeach
System Total Issues Critical Issues Critical Rate Status
{{ $sys->system ?? 'N/A' }} {{ $sys->total_issues ?? 0 }} {{ $sys->critical_issues ?? 0 }} @if($sys->total_issues > 0) {{ round(($sys->critical_issues / $sys->total_issues) * 100, 1) }}% @else 0% @endif {{ $sys->critical_issues > 0 ? 'Attention Needed' : 'Stable' }}
@endif

Recent Location History

@if(isset($locationHistory) && $locationHistory->count() > 0) @foreach ($locationHistory as $loc) @endforeach @else @endif
Location ID Location Name Total Tickets Pending Activity Level Last Visited
{{ $loc->location_id ?? 'N/A' }} {{ $loc->location_name ?? 'N/A' }} {{ $loc->ticket_count ?? 0 }} {{ $loc->pending_count ?? 0 }} {{ $loc->activity_level ?? 'Low' }} {{ $loc->visited_date ?? 'N/A' }}
No location history found