@if(!empty($landingComponent) and $landingComponent->enable) @php $freeCoursesBackgroundColor = "secondary"; $contents = []; if (!empty($landingComponent->content)) { $contents = json_decode($landingComponent->content, true); } if (!empty($contents['background_color'])) { $freeCoursesBackgroundColor = $contents['background_color']; } $frontComponentsDataMixins = (new \App\Mixins\LandingBuilder\FrontComponentsDataMixins()); $freeWebinars = $frontComponentsDataMixins->getFreeCoursesData(); @endphp @if($freeWebinars->isNotEmpty()) @push('styles_top') @endpush
@if(!empty($contents['main_content'])) @if(!empty($contents['main_content']['title']))

{{ $contents['main_content']['title'] }}

@endif @if(!empty($contents['main_content']['subtitle']))

{!! nl2br($contents['main_content']['subtitle']) !!}

@endif @endif
@include('design_1.web.courses.components.cards.grids.index',['courses' => $freeWebinars, 'gridCardClassName' => "col-12 col-md-6 col-lg-3 mt-28"])
@if(!empty($contents['cta_section'])) @php $freeCourseHasCtaContents = true; if ( empty($contents['cta_section']['title']) and empty($contents['cta_section']['description']) and empty($contents['cta_section']['link_title']) and empty($contents['cta_section']['icon']) ) { $freeCourseHasCtaContents = false; } @endphp @if($freeCourseHasCtaContents)
@if(!empty($contents['cta_section']['title']))

{{ $contents['cta_section']['title'] }}

@endif @if(!empty($contents['cta_section']['description']))

{{ $contents['cta_section']['description'] }}

@endif @if(!empty($contents['cta_section']['link_title'])) {{ $contents['cta_section']['link_title'] }} @endif
@if(!empty($contents['cta_section']['icon']))
icon
@endif
@endif @endif
@endif @endif