@extends('layouts.dashboard') @section('title', 'Kelas & Materi LMS') @section('eyebrow', __('lms.college')) @section('content') @php $courseImages = [ 'pemula' => 'https://images.unsplash.com/photo-1600965962361-9035dbfd1c50?auto=format&fit=crop&w=900&q=85', 'anak' => 'https://images.unsplash.com/photo-1530549387789-4c1017266635?auto=format&fit=crop&w=900&q=85', 'dewasa' => 'https://images.unsplash.com/photo-1519315901367-f34ff9154487?auto=format&fit=crop&w=900&q=85', 'privat' => 'https://images.unsplash.com/photo-1575429198097-0414ec08e8cd?auto=format&fit=crop&w=900&q=85', 'atlet' => 'https://images.unsplash.com/photo-1530549387789-4c1017266635?auto=format&fit=crop&w=900&q=85', ]; @endphp

Ruang belajar

Kelas Aktif

Kelas, materi, progress, dan tugas disatukan dalam satu alur. Pilih kelas untuk membuka modul dan mengirim tugas terkait.

{{ $classes->count() }} kelas aktif {{ $classes->sum('materials_count') }} materi {{ $classes->sum('assignments_count') }} tugas
@forelse($classes as $class) @php $keyName = strtolower($class->level?->name.' '.$class->class_name); $image = collect($courseImages)->first(fn ($url, $key) => str_contains($keyName, $key)) ?? 'https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?auto=format&fit=crop&w=900&q=85'; $progress = (int) round($class->materials->avg(fn ($material) => $material->progresses->first()?->progress_percent ?? 0) ?? 0); $nextMaterial = $class->materials->sortBy(fn ($material) => $material->progresses->first()?->progress_percent ?? 0)->first(); @endphp
{{ $class->class_name }}
Level {{ $class->level?->name }}

{{ $class->class_name }}

{{ $class->materials_count }} materi {{ $class->assignments_count }} tugas {{ $class->sessions_count }} sesi

{{ $class->description ?: 'Materi dan latihan untuk kelas ini tersedia di ruang belajar.' }}

Progress belajar {{ $progress }}%
@empty

Belum masuk kelas aktif.

Daftar sekolah renang atau tunggu admin memasukkan pendaftaran yang sudah dibayar ke kelas.

Daftar Sekolah Renang
@endforelse
@endsection