@extends('layouts.app') @section('title', 'Operations Command Center') @push('styles') @endpush @section('content') @php $actionsHtml = '
LIVE MONITORING
'; @endphp @include('components.page-header', [ 'title' => 'Real-Time Workforce Monitor', 'description' => 'Monitor active employee sessions, live productivity metrics, running tasks, and operational efficiency in real time.', 'breadcrumbs' => ['Home' => route('admin.dashboard'), 'Live Monitor' => '#'], 'actions' => $actionsHtml ])
Active Employees
{{ count($runningLogs) }}
CURRENTLY TRACKING
Productivity Avg
84%
Idle Threshold
12%
SYSTEM WIDE
Efficiency Score
91.2
TARGET: 90.0
@forelse($runningLogs as $log)
{{ substr($log->user?->name ?? 'U', 0, 1) }}
{{ $log->user?->name }}
ACTIVE NOW
CURRENT ASSIGNMENT
{{ $log->task?->title ?? 'System Maintenance' }}
Module: {{ $log->task?->module?->name ?? 'Core Engine' }}
00:00:00
@empty

No active workforce sessions detected on radar

All employee terminals are currently in idle or offline state.

@endforelse

Workforce Productivity Intelligence

AUDITED HISTORICAL RECORDS
@forelse($dailyLogs as $log) @empty @endforelse
Employee Reference Date Tracked Idle Time Net Productive Efficiency Status
{{ substr($log->user?->name ?? 'U', 0, 1) }}
{{ $log->user?->name }}
{{ $log->work_date->format('M d, Y') }}
{{ gmdate('H:i:s', $log->total_tracked_seconds) }} {{ gmdate('H:i:s', $log->total_idle_seconds) }} {{ gmdate('H:i:s', $log->productive_seconds) }}
{{ $log->productivity_score }}%
@php $statusClass = $log->productivity_score >= 80 ? 'badge-whatsapp' : ($log->productivity_score >= 50 ? 'badge-email' : 'badge-low'); $statusText = $log->productivity_score >= 80 ? 'High' : ($log->productivity_score >= 50 ? 'Medium' : 'Critical'); @endphp {{ $statusText }}

No productivity data found

{{ $dailyLogs->links() }}
@endsection