@php
    $features = $course->features()->get();
    $benefitIcons = ['award', 'book-open', 'users', 'headphones'];
@endphp
@if($features->count() > 0)
<section class="cp-section cp-benefits cp-animate" id="cp-benefits">
    <div class="container">
        @include('web.default.includes.premium.section_header', [
            'title' => trans('webinars.landing_benefits_title'),
            'subtitle' => trans('webinars.landing_benefits_subtitle'),
            'align' => 'center',
            'class' => 'mb-40 cp-section-title-wrap',
        ])
        <div class="cp-benefits__grid">
            @foreach($features as $index => $feature)
                <article class="cp-benefits__card">
                    <div class="cp-benefits__icon cp-benefits__icon--{{ ($index % 4) + 1 }}" aria-hidden="true">
                        <i data-feather="{{ $benefitIcons[$index % count($benefitIcons)] }}" width="32" height="32"></i>
                    </div>
                    <p class="cp-benefits__text">{{ $feature->description }}</p>
                </article>
            @endforeach
        </div>
    </div>
</section>
@endif
