@php $isSuperPanel = filament()->getPanel()?->getId() === \App\Enums\PanelType::SUPER_ADMIN->value; // Access Livewire computed properties directly (not as methods) $courses = $this->courses; $totalCount = $this->totalCount; $publishedCount = $this->publishedCount; $statusStyles = [ 'draft' => 'bg-amber-50 text-amber-700', 'published' => 'bg-emerald-50 text-emerald-700', 'archived' => 'bg-secondary-100 dark:bg-secondary-900/60 text-secondary-600 dark:text-secondary-300', ]; @endphp
Total {{ $totalCount }} Published {{ $publishedCount }}
Updating catalog…
@forelse($courses as $course) @empty @endforelse
Title Status Visibility Level Published Actions
{{ $course['title'] }}
@if(!empty($course['modules']))
@foreach($course['modules'] as $mod) {{ $mod['title'] }} @endforeach
@endif
@php $status = (string) ($course['status'] ?? ''); $statusClass = $statusStyles[$status] ?? 'bg-secondary-100 dark:bg-secondary-900/60 text-secondary-600 dark:text-secondary-300'; @endphp {{ $status ?: 'unknown' }} {{ $course['visibility'] ?? 'public' }} {{ $course['level'] }} {{ $course['published_at'] ?? '—' }} Edit Assessments
No courses yet.
@if($courses->hasPages())
{{ $courses->links() }}
@endif