@if(!empty($landingComponent) and $landingComponent->enable) @php $contents = []; if (!empty($landingComponent->content)) { $contents = json_decode($landingComponent->content, true); } $frontComponentsDataMixins = (new \App\Mixins\LandingBuilder\FrontComponentsDataMixins()); @endphp @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']['description']))

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

@endif
{{-- List --}} @php $ids = []; if (!empty($contents['specific_instructors']) and is_array($contents['specific_instructors'])) { foreach ($contents['specific_instructors'] as $instructorData) { if (!empty($instructorData['instructor_id'])) { $ids[] = $instructorData['instructor_id']; } } } $instructors = $frontComponentsDataMixins->getUsersByIds($ids, \App\Models\Role::$teacher); @endphp @if($instructors->isNotEmpty())
@include('design_1.web.instructors.components.cards.grids.index', ['instructors' => $instructors, 'gridCardClassName' => ""])
@endif {{-- CTA --}}
@if(!empty($contents['cta_section']))
@if(!empty($contents['cta_section']['icon']))
@svg("iconsax-{$contents['cta_section']['icon']}", ['width' => '24px', 'height' => '24px', 'class' => "icons text-dark"])
@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']['description']))
{{ $contents['cta_section']['description'] }}
@endif @endif {{-- Primary Button --}} @if(!empty($contents['main_content']['button']) and !empty($contents['main_content']['button']['label'])) @if(!empty($contents['main_content']['button']['icon'])) @svg("iconsax-{$contents['main_content']['button']['icon']}", ['width' => '24px', 'height' => '24px', 'class' => "icons"]) @endif {{ $contents['main_content']['button']['label'] }} @endif
@endif