@if(!empty($landingComponent) and $landingComponent->enable) @php $contents = []; if (!empty($landingComponent->content)) { $contents = json_decode($landingComponent->content, true); } @endphp @push('styles_top') @endpush
{{-- Upper Call to Action --}} @if(!empty($contents['upper_cta']) and (!empty($contents['upper_cta']['badge_text']) or !empty($contents['upper_cta']['main_text'])))
@if(!empty($contents['upper_cta']['badge_text']))
@if(!empty($contents['upper_cta']['icon'])) @svg("iconsax-{$contents['upper_cta']['icon']}", ['width' => '20px', 'height' => '20px', 'class' => "icons text-white two-columns-hero-section__upper-cta-badge-icon"]) @endif {{ $contents['upper_cta']['badge_text'] }}
@endif @if(!empty($contents['upper_cta']['main_text'])) {{ $contents['upper_cta']['main_text'] }} @endif
@endif {{-- Title --}} @if(!empty($contents['main_content']))

@if(!empty($contents['main_content']['title_line_1'])) {{ $contents['main_content']['title_line_1'] }} @endif @if(!empty($contents['main_content']['highlight_words']) and is_array($contents['main_content']['highlight_words'])) @if(count($contents['main_content']['highlight_words']) > 1) @push('scripts_bottom') @endpush
{{ array_values($contents['main_content']['highlight_words'])[0] }}
@else @foreach($contents['main_content']['highlight_words'] as $highlightWord) {{ $highlightWord }} @endforeach @endif @endif
@if(!empty($contents['main_content']['title_line_2'])) {{ $contents['main_content']['title_line_2'] }} @endif

@if(!empty($contents['main_content']['description']))
{!! nl2br($contents['main_content']['description']) !!}
@endif @if(!empty($contents['main_content']['primary_button']) or !empty($contents['main_content']['secondary_button'])) @endif @endif {{-- Students Widget --}} @if(!empty($contents['students_widget']) and !empty($contents['students_widget']['title']))
@if(!empty($contents['students_widget_avatars']) and is_array($contents['students_widget_avatars']))
@foreach($contents['students_widget_avatars'] as $avatar)
avatar
@endforeach
@endif
@foreach([1,2,3,4,5] as $st) @endforeach
@if(!empty($contents['students_widget']['title']))
{{ $contents['students_widget']['title'] }}
@endif
@endif
@if(!empty($contents['image_content']))
@if(!empty($contents['image_content']['type']))
@if($contents['image_content']['type'] == "lottie_json" and !empty($contents['image_content']['lottie_json'])) @push('scripts_bottom') @endpush @elseif($contents['image_content']['type'] == "image" and !empty($contents['image_content']['image'])) hero @endif
@endif @if(!empty($contents['image_content']['spinning_image']))
spinning_image
@endif @if(!empty($contents['image_content']['overlay_image']))
overlay_image
@endif
@endif
@endif