@extends('layouts.app') @section('title', 'Topic Library') @section('content')

Seasonal Recommendations

Topics specifically relevant for current season

@php $month = date('n'); @endphp @if(in_array($month, [12, 1, 2])) @elseif(in_array($month, [3, 4, 5])) @elseif(in_array($month, [6, 7, 8])) @else @endif
@forelse($topics as $topic)
@switch($topic->category) @case('safety') @break @case('health') @break @case('environment') @break @default @endswitch {{ $topic->category }} @if($topic->is_mandatory) Mandatory @endif

{{ $topic->title }}

{{ $topic->description }}

Duration: {{ $topic->estimated_duration_minutes }} min
Difficulty: {{ ucfirst($topic->difficulty_level) }}
Used: {{ $topic->usage_count }} times
@if($topic->average_feedback_score)
Rating:
{{ number_format($topic->average_feedback_score, 1) }}
@endif
@if($topic->learning_objectives)

Learning Objectives:

    @foreach(array_slice($topic->learning_objectives, 0, 3) as $objective)
  • {{ $objective }}
  • @endforeach @if(count($topic->learning_objectives) > 3)
  • +{{ count($topic->learning_objectives) - 3 }} more...
  • @endif
@endif @if($topic->seasonal_relevance !== 'all_year')
{{ ucfirst(str_replace('_', ' ', $topic->seasonal_relevance)) }}
@endif
View
@empty

No topics found

Try adjusting your filters or create a new topic

Create Topic
@endforelse
@if($topics->hasPages())
{{ $topics->links() }}
@endif
@endsection @push('scripts') @endpush