{{-- resources/views/training/topics/index.blade.php --}} @extends('layouts.app') @section('title', 'Training Topics') @section('content')

Training Topics

Manage training topics and completion methods

{{ request('show_deleted') ? 'Show Active' : 'Show Deleted (' . $stats['trashed'] . ')' }} New Topic
@foreach([ ['Total', $stats['total'], 'primary'], ['Active', $stats['active'], 'success'], ['Deleted', $stats['trashed'], 'danger'], ] as [$label, $count, $color])
{{ $label }}
{{ $count }}
@endforeach
@include('training.partials.alerts')
@forelse($topics as $t) @empty @endforelse
Code Topic Name Category Completion Method Recurrence Status Actions
{{ $t->topic_code }} {{ $t->topic_name }} {{ $t->category?->category_name ?? '-' }} {{ $t->completion_method }} @if(in_array($t->completion_method, ['QUIZ','BOTH'])) ({{ $t->passing_score }}%) @endif {{ $t->recurrence_months ? 'Every ' . $t->recurrence_months . ' mo' : 'One-time' }} @if($t->trashed()) Deleted @else
@csrf
@endif
@if($t->trashed())
@csrf
@csrf @method('DELETE')
@else
@csrf @method('DELETE')
@endif
No topics found
{{ $topics->links() }}
@endsection