@php $previewMode = ! auth()->user()->isEnrolled($course) && ! auth()->user()->canViewAll(); @endphp @if ($previewMode)
{{ __('免費試閱') }} {{ __('你正在閱讀免費試閱內容。加入課程即可解鎖完整章節、影片與實作。') }} {{ __('查看選購方案') }}
@endif @if ($course->category->theme === 'pomelo') @php $flat = $course->chapters->flatMap->lessons; $doneCount = $flat->whereIn('id', $done)->count(); $pct = $flat->count() ? (int) round($doneCount / $flat->count() * 100) : 0; @endphp

{{ __('滿金學院') }} · {{ __('AI學院') }}

{{ __('首頁') }} > {{ __('AI學院') }} > {{ __('課程學習') }}
{{ __('小柚 AI 導師 ・ :status ・ 目前 :n 位學員在線', ['status' => \App\Services\Tutor::available() ? __('AI 在線') : __('教材問答'), 'n' => number_format(\App\Models\User::onlineCount())]) }} {{ __('小柚') }}
{{ $lesson->typeLabel() }} · {{ $lesson->title }}
@include('learn.body')
@include('learn.tutor')
@else
@include('learn.sidebar')
@include('learn.body')
@include('learn.tutor')
@endif