@if(!empty($landingComponent) and $landingComponent->enable) @php $contents = []; if (!empty($landingComponent->content)) { $contents = json_decode($landingComponent->content, true); } $frontComponentsDataMixins = (new \App\Mixins\LandingBuilder\FrontComponentsDataMixins()); $newestCourses = $frontComponentsDataMixins->getNewestCoursesData(); @endphp @if($newestCourses->isNotEmpty()) @push('styles_top') @endpush
@if(!empty($contents['main_content']) and !empty($contents['main_content']['pre_title']))
{{ $contents['main_content']['pre_title'] }}
@endif @if(!empty($contents['main_content']) and !empty($contents['main_content']['title']))

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

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

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

@endif
{{-- Newest Courses --}}
@include('design_1.web.courses.components.cards.grids.index',['courses' => $newestCourses, 'gridCardClassName' => "col-12 col-md-6 col-lg-3 mt-24"])
{{-- CTA --}} @if(!empty($contents['cta_section']))
@if(!empty($contents['cta_section']['icon'])) @svg("iconsax-{$contents['cta_section']['icon']}", ['width' => '24px', 'height' => '24px', 'class' => "icons"]) @endif @if(!empty($contents['cta_section']['title_bold_text'])) {{ $contents['cta_section']['title_bold_text'] }} @endif @if(!empty($contents['cta_section']['title_regular_text'])) {{ $contents['cta_section']['title_regular_text'] }} @endif
@if(!empty($contents['cta_section']['subtitle']))

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

@endif
@if(!empty($contents['cta_section']['button']) and !empty($contents['cta_section']['button']['label'])) @if(!empty($contents['cta_section']['button']['icon'])) @svg("iconsax-{$contents['cta_section']['button']['icon']}", ['width' => '24px', 'height' => '24px', 'class' => "icons"]) @endif {{ $contents['cta_section']['button']['label'] }} @endif
@endif
@endif @endif