@php
    $hasCertificateQuiz = $course->quizzes->where('certificate', 1)->count() > 0;
@endphp
<div class="cp-curriculum cp-animate" id="cp-curriculum">
    @include('web.default.includes.premium.section_header', [
        'title' => trans('product.content'),
        'align' => 'center',
        'class' => 'mb-30 cp-section-title-wrap',
    ])

    <div class="cp-curriculum__stats">
        <div class="cp-curriculum__stat">
            <i data-feather="layers" width="22" height="22" aria-hidden="true"></i>
            <span class="cp-curriculum__stat-value">{{ $chapterCount }}</span>
            <span class="cp-curriculum__stat-label">{{ trans('webinars.landing_stat_sections') }}</span>
        </div>
        <div class="cp-curriculum__stat">
            <i data-feather="play-circle" width="22" height="22" aria-hidden="true"></i>
            <span class="cp-curriculum__stat-value">{{ $webinarContentCount }}</span>
            <span class="cp-curriculum__stat-label">{{ trans('webinars.landing_stat_lectures') }}</span>
        </div>
        <div class="cp-curriculum__stat">
            <i data-feather="clock" width="22" height="22" aria-hidden="true"></i>
            <span class="cp-curriculum__stat-value">{{ convertMinutesToHourAndMinute(!empty($course->duration) ? $course->duration : 0) }}</span>
            <span class="cp-curriculum__stat-label">{{ trans('home.hours') }}</span>
        </div>
        @if($hasCertificateQuiz)
            <div class="cp-curriculum__stat">
                <i data-feather="award" width="22" height="22" aria-hidden="true"></i>
                <span class="cp-curriculum__stat-value">✓</span>
                <span class="cp-curriculum__stat-label">{{ trans('webinars.landing_badge_certified') }}</span>
            </div>
        @elseif($lessonCount > 0)
            <div class="cp-curriculum__stat">
                <i data-feather="book-open" width="22" height="22" aria-hidden="true"></i>
                <span class="cp-curriculum__stat-value">{{ $lessonCount }}</span>
                <span class="cp-curriculum__stat-label">{{ trans('webinars.landing_lesson_label') }}</span>
            </div>
        @endif
    </div>

    <div class="cp-curriculum__panel">
        @include(getTemplate().'.course.tabs.content')
    </div>
</div>
