@extends('layouts.app') @section('title', 'Toolbox Talks Dashboard') @section('content')

Toolbox Talks Dashboard

Total Talks

{{ $stats['total_talks'] }}

{{ $stats['this_month'] }} this month

Completed

{{ $stats['completed_this_month'] }}

{{ $stats['this_month'] > 0 ? round(($stats['completed_this_month'] / $stats['this_month']) * 100) : 0 }}% completion rate

Avg Attendance

{{ round($stats['avg_attendance_rate']) }}%

{{ $stats['avg_attendance_rate'] >= 80 ? 'Good' : 'Needs Improvement' }}

Avg Feedback

{{ number_format($stats['avg_feedback_score'], 1) }}

{{ $stats['avg_feedback_score'] >= 4.0 ? 'Excellent' : 'Good' }}

Monthly Trends (Last 6 Months)

Status Distribution

Weekly Attendance (Last 8 Weeks)

Talk Type Distribution

Department Performance

Top Performing Topics

@if(count($topTopics ?? []) > 0)
@foreach($topTopics as $topic)
{{ $topic['name'] }}
{{ $topic['count'] }} talks
Attendance: {{ number_format($topic['avg_attendance'], 1) }}%
Feedback: {{ number_format($topic['avg_feedback'], 1) }}/5
@endforeach
@else

No topic data available

@endif

Recent Talks

View All
@forelse($recentTalks as $talk)

{{ $talk->title }}

{{ $talk->scheduled_date->format('M d, Y') }} {{ $talk->department?->name ?? 'All' }}
@switch($talk->status) @case('scheduled') Scheduled @break @case('in_progress') In Progress @break @case('completed') Completed @break @default {{ $talk->status }} @endswitch
@empty

No recent talks

@endforelse

Upcoming Talks

View All
@forelse($upcomingTalks as $talk)

{{ $talk->title }}

@if($talk->biometric_required) @endif
{{ $talk->scheduled_date->format('M d, Y') }}
{{ $talk->start_time ? $talk->start_time->format('g:i A') : 'Not set' }}
{{ $talk->location }}
@empty

No upcoming talks scheduled

Schedule a talk
@endforelse
@push('scripts') @endpush @endsection