@extends('layouts.app') @section('title', $topic->title) @php $breadcrumbs = [ ['label' => 'Dashboard', 'url' => route('dashboard'), 'icon' => 'fa-home'], ['label' => 'Toolbox Topics', 'url' => route('toolbox-topics.index'), 'icon' => 'fa-book'], ['label' => $topic->title, 'url' => null, 'active' => true] ]; @endphp @section('content')
Back to Topics

{{ $topic->title }}

{{ $topic->is_active ? 'Active' : 'Inactive' }} @if($topic->is_mandatory) Mandatory @endif

Edit
@csrf

Basic Information

Category
{{ str_replace('_', ' ', $topic->category) }}
@if($topic->subcategory)
Subcategory
{{ str_replace('_', ' ', $topic->subcategory) }}
@endif
Difficulty Level
{{ $topic->difficulty_level }}
Estimated Duration
{{ $topic->estimated_duration_minutes }} minutes
Seasonal Relevance
{{ str_replace('_', ' ', $topic->seasonal_relevance) }}
@if($topic->representer)
Representer
{{ $topic->representer->name }}
@endif @if($topic->creator)
Created By
{{ $topic->creator->name }}
@endif
Created At
{{ $topic->created_at->format('M d, Y') }}
@if($topic->description)
Description
{{ $topic->description }}
@endif
@if($topic->learning_objectives && count($topic->learning_objectives) > 0)

Learning Objectives

    @foreach($topic->learning_objectives as $objective)
  • {{ $objective }}
  • @endforeach
@endif @if($topic->key_talking_points)

Key Talking Points

{{ $topic->key_talking_points }}
@endif @if($topic->real_world_examples)

Real World Examples

{{ $topic->real_world_examples }}
@endif @if($topic->regulatory_references)

Regulatory References

{{ $topic->regulatory_references }}
@endif @if($topic->required_materials && count($topic->required_materials) > 0)

Required Materials

    @foreach($topic->required_materials as $material)
  • {{ $material }}
  • @endforeach
@endif @if($topic->toolboxTalks && $topic->toolboxTalks->count() > 0)

Recent Toolbox Talks

@foreach($topic->toolboxTalks as $talk)

{{ $talk->title }}

{{ $talk->scheduled_date->format('M d, Y') }} @if($talk->department) {{ $talk->department->name }} @endif

{{ ucfirst($talk->status) }}
@endforeach
@endif

Usage Statistics

Total Uses
{{ $usageStats['total_uses'] }}
Recent Uses
{{ $usageStats['recent_uses'] }}
@if($usageStats['avg_feedback'])
Average Feedback
{{ number_format($usageStats['avg_feedback'], 1) }}/5
@endif @if($usageStats['effectiveness'])
Effectiveness Rating
{{ $usageStats['effectiveness'] }}/5
@endif @if($usageStats['last_used'])
Last Used
{{ $usageStats['last_used']->format('M d, Y') }}
@endif
@if($departmentUsage && $departmentUsage->count() > 0)

Department Usage

@foreach($departmentUsage as $usage) @if(isset($usage['department']) && $usage['department'])
{{ $usage['department']->name }} {{ $usage['count'] }} uses
@endif @endforeach
@endif

Quick Actions

@endsection