@extends('layouts-v2.app') @section('head') @endsection @section('content')

Trang tổng quan

Thống kê BTVN & nộp bài theo bộ lọc course và khoảng thời gian

@if($tenantConnection == 'lms_tenant_icc')

Bộ lọc

Chọn course
@if(isset($filterCourseIds) && is_array($filterCourseIds) && count($filterCourseIds) > 0 && isset($allCourses)) @php $selectedCourses = $allCourses->whereIn('id', $filterCourseIds); @endphp @foreach($selectedCourses as $c) {{ $c->moodle_name ?? '' }} × @endforeach @else Chưa chọn course (áp dụng tất cả) @endif

Số lượt làm bài (đã nộp)

{{ number_format($totalAttempts ?? 0) }}

Số user nộp bài (unique)

{{ number_format($totalUniqueUsers ?? 0) }}

Bài làm bỏ dở (chưa nộp)

{{ number_format($totalStartedNotSubmitted ?? 0) }}

Tỷ lệ học viên làm BTVN

{{ isset($homeworkCompletionRate['completion_rate_percentage']) ? number_format($homeworkCompletionRate['completion_rate_percentage'], 1) : '0' }}%

@if(isset($homeworkCompletionRate['total_users_assigned']) && $homeworkCompletionRate['total_users_assigned'] > 0) {{ number_format($homeworkCompletionRate['users_completed_homework'] ?? 0) }}/{{ number_format($homeworkCompletionRate['total_users_assigned']) }} @endif

Thời gian TB làm BTVN

{{ $averageTimeBTVN['average_time_formatted'] ?? '0 phút 0 giây' }}

@if(isset($averageTimeBTVN['total_attempts']) && $averageTimeBTVN['total_attempts'] > 0) {{ number_format($averageTimeBTVN['total_attempts']) }} lượt · {{ number_format($averageTimeBTVN['total_students'] ?? 0) }} học viên @endif

Tỷ lệ phải làm lại / bị fail theo course

@if(isset($failureRateByCourse) && $failureRateByCourse->count() > 0) @foreach($failureRateByCourse as $row) @endforeach @else @endif
Course Tổng lượt Đạt Fail % Đạt % Fail
{{ $row->course_name ?? '' }} {{ number_format($row->total_attempts ?? 0) }} {{ number_format($row->passed_attempts ?? 0) }} {{ number_format($row->failed_attempts ?? 0) }} {{ number_format($row->pass_rate_percentage ?? 0, 1) }}% {{ number_format($row->failure_rate_percentage ?? 0, 1) }}%
Không có dữ liệu theo bộ lọc đã chọn

Số lượng nộp bài theo khóa học

@if(isset($submitsByCourse) && $submitsByCourse->count() > 0) @foreach($submitsByCourse as $row) @endforeach @else @endif
Course Số lượt nộp
{{ $row->course_name ?? '' }} {{ number_format($row->total_submits ?? 0) }}
Không có dữ liệu
@endif @endsection @section('scripts') @endsection