@extends('layouts.teacher') @section('title', 'Monitoring Siswa') @section('header_title', 'Monitoring Pembelajaran') @section('content')
{{-- HEADER --}}
← Kembali

Monitoring Siswa

Materi: {{ $lesson['title'] ?? '-' }}

{{-- STATISTIK --}} @php $total = $students->count(); $opened = $students->where('duration', '>', 0)->count(); $completed = $students->where('is_completed', 1)->count(); @endphp

Total Siswa

{{ $total }}

Sudah Membuka

{{ $opened }}

Belum Membuka

{{ $total - $opened }}

Progress

{{ $total ? round(($completed / $total) * 100) : 0 }}%

{{-- TABLE DESKTOP --}} {{-- MOBILE --}}
@forelse($students as $siswa)

{{ $siswa['name'] }}

@if($siswa['is_completed']) Selesai @else Belum @endif

Durasi: {{ $siswa['duration'] > 0 ? gmdate('i:s', $siswa['duration']) . ' menit' : '-' }}

Terakhir Akses: {{ $siswa['last_access'] }}

@empty
Belum ada data siswa
@endforelse
@endsection