@extends('layouts.app') @section('title', 'Admin Dashboard') @push('styles') @endpush @section('content')

Executive Intelligence

Organization-wide operational monitoring and automated risk detection.

Configure Live Report
Total Workforce

{{ $totalEmployees ?? '0' }}

Active Projects

{{ $activeProjects ?? '0' }}

Productivity

{{ ($productivityScore ?? 0) . '%' }}

QA Failures

{{ $qaFailures ?? '0' }}

Productivity Analytics

Live Tracking

Active Now
@forelse($runningTimers as $timer)
{{ strtoupper(substr($timer->user?->name ?? 'U', 0, 1)) }}

{{ $timer->user?->name }}

Task #{{ $timer->task_id }}

{{ \Carbon\Carbon::parse($timer->start_time)->diffForHumans(null, true) }}
@empty

No active engineers

@endforelse

Delivery Health

@php $totalHealth = max(1, ($health['healthy'] + $health['risk'] + $health['delayed'])); @endphp
Optimal Flow {{ $health['healthy'] }}
Warning Zone {{ $health['risk'] }}
Critical Delay {{ $health['delayed'] }}

Top Performer

@if($topPerformer)
{{ strtoupper(substr($topPerformer->user?->name ?? 'U', 0, 1)) }}

{{ $topPerformer->user?->name }}

{{ $topPerformer->user?->role ?? 'Lead Engineer' }}

{{ number_format($topPerformer->total_points) }} PTS
@else
No performance data
@endif

Workload Balance

{{ $workload['dev'] }}
Engineering
{{ $workload['qa'] }}
QA Cycles

System Intelligence Insight

Currently {{ $kbMissing }} architectural components are identified with pending documentation requirements.

Recent Activity Stream

@forelse($recentActivities ?? [] as $log) @empty @endforelse
Action Event Module Component Engineer Timeline
{{ $log->action }} {{ $log->module }}
{{ strtoupper(substr($log->user?->name ?? 'U', 0, 1)) }}
{{ $log->user?->name ?? 'System' }}
{{ \Carbon\Carbon::parse($log->created_at)->diffForHumans() }}
No recent activities found.
@push('scripts') @endpush @endsection