{{-- resources/views/training/categories/show.blade.php --}} @extends('layouts.app') @section('title', 'Category Details') @section('content')

{{ $category->category_name }} {{ $category->category_code }}

@unless($category->trashed()) Edit @endunless Back
@include('training.partials.alerts')
Category Details
@if($category->updated_at != $category->created_at) @endif
Code:{{ $category->category_code }}
Name:{{ $category->category_name }}
Description:{{ $category->description ?: '-' }}
Requires Certification: {{ $category->requires_certification ? 'Yes' : 'No' }}
Validity:{{ $category->validity_months ? $category->validity_months . ' months' : 'N/A' }}
Mandatory: {{ $category->is_mandatory ? 'Yes' : 'No' }}
Status: {{ $category->is_active ? 'Active' : 'Inactive' }}
Created By:{{ $category->creator?->name ?? 'System' }}
Created At:{{ $category->created_at->format('M d, Y g:i A') }}
Last Updated:{{ $category->updated_at->format('M d, Y g:i A') }} by {{ $category->updater?->name ?? 'System' }}
Topics ({{ $category->topics_count }})
@unless($category->trashed()) Add Topic @endunless
@if($category->topics()->count() > 0)
    @foreach($category->topics()->orderBy('topic_name')->get() as $topic)
  • {{ $topic->topic_name }} {{ $topic->is_active ? 'Active' : 'Inactive' }}
  • @endforeach
@else

No topics assigned yet

@endif
{{-- Audit Trail --}}
Audit Trail
@include('training.partials.audit-timeline', ['logs' => $auditLogs])
@endsection