@extends('layouts-v2.app') @section('content')
Trang chủ Tất cả khóa học

Tất cả khóa học

Tổng cộng {{ $pagination['total'] }} khóa học

Tất cả {{ $pagination['total'] }} @foreach($groupedCourses as $group) @php $icon = 'folder'; @endphp {{ $group['name'] }} {{ $group['count'] }} @endforeach
@if($paginatedCourses->count() > 0)
Hiển thị {{ $paginatedCourses->count() }} khóa học @if($search) cho "{{ $search }}" @endif
@foreach($paginatedCourses as $course) @php $shortName = $course->short_name; $description = $course->description; $level = $course->level; $type = $course->type; // Course URL (use v2 route if available, fallback to v1) if (Route::has('v2.course.detail')) { $courseUrl = route('v2.course.detail', ['course_id' => $course->id]); } else { $courseUrl = '/product/detail/' . $course->id; } @endphp

{{ $shortName }}

@endforeach
@if($pagination['total_pages'] > 1) @php $currentPage = (int) $pagination['current_page']; $lastPage = (int) $pagination['total_pages']; $onEachSide = 2; $windowStart = max(1, $currentPage - $onEachSide); $windowEnd = min($lastPage, $currentPage + $onEachSide); @endphp
@endif @else

Không tìm thấy khóa học nào

@if($search) Không có kết quả nào cho "{{ $search }}". Hãy thử từ khóa khác. @else Hiện tại chưa có khóa học nào phù hợp với bộ lọc của bạn. @endif

Xem tất cả khóa học
@endif
@endsection