{{-- resources/views/library/course/index.blade.php 课程栏目首页。 区块:Hero → 统计条 → 最新课程 → 开放报名 → 历史课程预览 --}} @extends('layouts.library') @section('title', __('library.course') . ' · ' . __('library.site_name')) @push('styles') @vite('resources/css/modules/library-course.css') @endpush @section('breadcrumb') @endsection {{-- Hero --}} @section('hero')

{{ __('library.course_hero_title') }}

{{ __('library.course_hero_subtitle') }}

@endsection @section('content')
{{-- ── 统计条 ── --}}
{{ $stats['total'] }}
{{ __('library.course_stat_total') }}
{{ $stats['open'] }}
{{ __('library.course_stat_open') }}
{{ $stats['closed'] }}
{{ __('library.course_stat_closed') }}
{{-- ── 一、最新课程 ── --}}

{{ __('library.course_section_latest') }}

@if($latestCourses->isNotEmpty())
@foreach($latestCourses as $course) @endforeach
@else
@endif
{{-- ── 二、开放报名 ── --}}

{{ __('library.course_section_open') }}

@if($openCourses->isNotEmpty())
@foreach($openCourses as $course) @endforeach
@else
@endif
{{-- ── 三、历史课程 ── --}}

{{ __('library.course_section_history') }}

{{ __('library.course_view_all') }}
@if($historyCourses->isNotEmpty())
@foreach($historyCourses as $course) @endforeach
@else
@endif
@endsection