{{ __('Dashboard') }}

@if(isset($announcements) && $announcements->isNotEmpty())

Pengumuman Terbaru

@foreach($announcements as $announcement) @php $levelClasses = [ 'info' => 'bg-blue-50 border-blue-200 text-blue-800', 'success' => 'bg-green-50 border-green-200 text-green-800', 'warning' => 'bg-yellow-50 border-yellow-200 text-yellow-800', 'danger' => 'bg-red-50 border-red-200 text-red-800', ]; $class = $levelClasses[$announcement->level] ?? $levelClasses['info']; @endphp

{{ $announcement->title }}

{{ $announcement->content }}

Diposting oleh {{ $announcement->user->name }} pada {{ $announcement->created_at->format('d M Y') }}

@endforeach
@endif @php $user = Auth::user(); @endphp @if (isset($stats) && Gate::check('admin-only')) @include('dashboard.admin', ['stats' => $stats]) @elseif (isset($stats) && $user->can('manage own courses')) @include('dashboard.instructor', ['stats' => $stats]) @elseif (isset($stats) && ($user->can('view progress reports') || $user->can('view certificate management'))) @include('dashboard.eo', ['stats' => $stats]) @elseif (isset($stats) && $user->can('attempt quizzes')) @include('dashboard.participant', ['stats' => $stats]) @else
{{ __("You're logged in!") }}
@endif