{{-- One panel on /student/courses.php — a discipline or a course, one per row: cover photo (App\Support\CourseCovers), title, optional subtitle/description, progress bar and what a click does. --}} @php $pct = (int) $lessons > 0 ? (int) round($done / $lessons * 100) : 0; $state = $pct === 100 ? 'done' : ((int) $done > 0 ? 'going' : 'new'); @endphp
{{ $title }}
@if ($subtitle)
{{ $subtitle }}
@endif @if ($description)
{{ $description }}
@endif
{{ __('Пройдено :done из :total', ['done' => (int) $done, 'total' => (int) $lessons]) }}
@if ($state === 'done') {{ __('Пройдено') }} @else {{ $state === 'going' ? __('Продолжить') : __('Открыть') }} @endif