@extends('layouts.app') @section('title', 'Workforce Intelligence') @push('styles') @endpush @section('content') @php $actionsHtml = '
'; @endphp @include('components.page-header', [ 'title' => 'Workforce Time Intelligence', 'description' => 'Track productivity, monitor active work sessions, manage idle time, and analyze performance metrics in real-time.', 'breadcrumbs' => ['Home' => route('employee.dashboard'), 'Time Tracking' => '#'], 'actions' => $actionsHtml ])

Active Session Controller

00:00:00
{{ (isset($activeLog) && $activeLog->status === 'running') ? 'LIVE SESSION ACTIVE' : 'IDLE / READY' }}

Today's Intelligence Summary

{{ $todaySummary->productivity_score ?? 0 }}%
{{ $todaySummary->productivity_score ?? 0 }}%
Productivity Excellence
Total Tracked {{ isset($todaySummary) ? gmdate('H:i:s', $todaySummary->total_tracked_seconds) : '00:00:00' }}
Idle Time {{ isset($todaySummary) ? gmdate('H:i:s', $todaySummary->total_idle_seconds) : '00:00:00' }}
Productive {{ isset($todaySummary) ? gmdate('H:i:s', $todaySummary->productive_seconds) : '00:00:00' }}
Focus Score {{ $todaySummary->focus_score ?? 84 }}%

Manual Session Intelligence

Provide context for your active work session to improve AI-driven performance insights.

Real-time Tip

"Focusing on a single task for more than 45 minutes can improve your overall productivity score by 12%."

Daily Goal Progress 75%

Historical Productivity Logs

AUDITED TIME RECORDS
@forelse($dailyLogs as $log) @empty @endforelse
Work Date Gross Tracked Idle Time Net Productive Efficiency Status
{{ $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 ? 'Optimal' : ($log->productivity_score >= 50 ? 'Developing' : 'Critical'); @endphp {{ $statusText }}

No historical work sessions detected

@endsection