@extends(getTemplate().'.layouts.app') @push('styles_top') @endpush @section('content') @if(!empty($heroSectionData)) @if(!empty($heroSectionData['has_lottie']) and $heroSectionData['has_lottie'] == "1") @push('scripts_bottom') @endpush @endif
@if($heroSection == "1") @if(!empty($heroSectionData['is_video_background'])) @endif
@endif
@if($heroSection == "2")

{{ $heroSectionData['title'] }}

{!! nl2br($heroSectionData['description']) !!}

@if(!empty($heroSectionData['has_lottie']) and $heroSectionData['has_lottie'] == "1") @else {{ $heroSectionData['title'] }} @endif
@else

{{ $heroSectionData['title'] }}

{!! nl2br($heroSectionData['description']) !!}

@endif
@endif {{-- Statistics --}} @include('web.default.pages.includes.home_statistics') @foreach($homeSections as $homeSection) @if($homeSection->name == \App\Models\HomeSection::$featured_classes and !empty($featureWebinars) and !$featureWebinars->isEmpty())

{{ trans('home.featured_classes') }}

{{ trans('home.featured_classes_hint') }}

@foreach($featureWebinars as $feature)
@if($feature->webinar->bestTicket() < $feature->webinar->price) {{ trans('public.offer',['off' => $feature->webinar->bestTicket(true)['percent']]) }} @endif

{{ $feature->webinar->title }}

{{ $feature->description }}

@include('web.default.includes.webinar.rate',['rate' => $feature->webinar->getRate()])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$latest_bundles and !empty($latestBundles) and !$latestBundles->isEmpty())

{{ trans('update.latest_bundles') }}

{{ trans('update.latest_bundles_hint') }}

{{ trans('home.view_all') }}
@foreach($latestBundles as $latestBundle)
@include('web.default.includes.webinar.grid-card',['webinar' => $latestBundle])
@endforeach
@endif {{-- Upcoming Course --}} @if($homeSection->name == \App\Models\HomeSection::$upcoming_courses and !empty($upcomingCourses) and !$upcomingCourses->isEmpty())

{{ trans('update.upcoming_courses') }}

{{ trans('update.upcoming_courses_home_section_hint') }}

{{ trans('home.view_all') }}
@foreach($upcomingCourses as $upcomingCourse)
@include('web.default.includes.webinar.upcoming_course_grid_card',['upcomingCourse' => $upcomingCourse])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$latest_classes and !empty($latestWebinars) and !$latestWebinars->isEmpty())

{{ trans('home.latest_classes') }}

{{ trans('home.latest_webinars_hint') }}

{{ trans('home.view_all') }}
@foreach($latestWebinars as $latestWebinar)
@include('web.default.includes.webinar.grid-card',['webinar' => $latestWebinar])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$best_rates and !empty($bestRateWebinars) and !$bestRateWebinars->isEmpty())

{{ trans('home.best_rates') }}

{{ trans('home.best_rates_hint') }}

{{ trans('home.view_all') }}
@foreach($bestRateWebinars as $bestRateWebinar)
@include('web.default.includes.webinar.grid-card',['webinar' => $bestRateWebinar])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$trend_categories and !empty($trendCategories) and !$trendCategories->isEmpty())

{{ trans('home.trending_categories') }}

{{ trans('home.trending_categories_hint') }}

@endif {{-- Ads Bannaer --}} @if($homeSection->name == \App\Models\HomeSection::$full_advertising_banner and !empty($advertisingBanners1) and count($advertisingBanners1))
@foreach($advertisingBanners1 as $banner1) @endforeach
@endif {{-- ./ Ads Bannaer --}} @if($homeSection->name == \App\Models\HomeSection::$best_sellers and !empty($bestSaleWebinars) and !$bestSaleWebinars->isEmpty())

{{ trans('home.best_sellers') }}

{{ trans('home.best_sellers_hint') }}

{{ trans('home.view_all') }}
@foreach($bestSaleWebinars as $bestSaleWebinar)
@include('web.default.includes.webinar.grid-card',['webinar' => $bestSaleWebinar])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$discount_classes and !empty($hasDiscountWebinars) and !$hasDiscountWebinars->isEmpty())

{{ trans('home.discount_classes') }}

{{ trans('home.discount_classes_hint') }}

{{ trans('home.view_all') }}
@foreach($hasDiscountWebinars as $hasDiscountWebinar)
@include('web.default.includes.webinar.grid-card',['webinar' => $hasDiscountWebinar])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$free_classes and !empty($freeWebinars) and !$freeWebinars->isEmpty())

{{ trans('home.free_classes') }}

{{ trans('home.free_classes_hint') }}

{{ trans('home.view_all') }}
@foreach($freeWebinars as $freeWebinar)
@include('web.default.includes.webinar.grid-card',['webinar' => $freeWebinar])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$store_products and !empty($newProducts) and !$newProducts->isEmpty())

{{ trans('update.store_products') }}

{{ trans('update.store_products_hint') }}

{{ trans('update.all_products') }}
@foreach($newProducts as $newProduct)
@include('web.default.products.includes.card',['product' => $newProduct])
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$testimonials and !empty($testimonials) and !$testimonials->isEmpty())

{{ trans('home.testimonials') }}

{{ trans('home.testimonials_hint') }}

@foreach($testimonials as $testimonial)
{{ $testimonial->user_name }}

{{ $testimonial->user_name }}

{{ $testimonial->user_bio }} @include('web.default.includes.webinar.rate',['rate' => $testimonial->rate, 'dontShowRate' => true])

{!! nl2br($testimonial->comment) !!}

@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$subscribes and !empty($subscribes) and !$subscribes->isEmpty())

{{ trans('home.subscribe_now') }}

{{ trans('home.subscribe_now_hint') }}

@foreach($subscribes as $subscribe) @php $subscribeSpecialOffer = $subscribe->activeSpecialOffer(); @endphp
@endforeach
@endif @if($homeSection->name == \App\Models\HomeSection::$find_instructors and !empty($findInstructorSection))

{{ $findInstructorSection['title'] ?? '' }}

{{ $findInstructorSection['description'] ?? '' }}

@if(!empty($findInstructorSection['button1']) and !empty($findInstructorSection['button1']['title']) and !empty($findInstructorSection['button1']['link'])) {{ $findInstructorSection['button1']['title'] }} @endif @if(!empty($findInstructorSection['button2']) and !empty($findInstructorSection['button2']['title']) and !empty($findInstructorSection['button2']['link'])) {{ $findInstructorSection['button2']['title'] }} @endif
{{ $findInstructorSection['title'] }} circle dots
user name
{{ trans('update.looking_for_an_instructor') }} {{ trans('update.find_the_best_instructor_now') }}
@endif @if($homeSection->name == \App\Models\HomeSection::$reward_program and !empty($rewardProgramSection))
{{ $rewardProgramSection['title'] }}
medal
{{ trans('update.you_got_50_points') }} {{ trans('update.for_completing_the_course') }}

{{ $rewardProgramSection['title'] ?? '' }}

{{ $rewardProgramSection['description'] ?? '' }}

@if(!empty($rewardProgramSection['button1']) and !empty($rewardProgramSection['button1']['title']) and !empty($rewardProgramSection['button1']['link'])) {{ $rewardProgramSection['button1']['title'] }} @endif @if(!empty($rewardProgramSection['button2']) and !empty($rewardProgramSection['button2']['title']) and !empty($rewardProgramSection['button2']['link'])) {{ $rewardProgramSection['button2']['title'] }} @endif
@endif @if($homeSection->name == \App\Models\HomeSection::$become_instructor and !empty($becomeInstructorSection))

{{ $becomeInstructorSection['title'] ?? '' }}

{{ $becomeInstructorSection['description'] ?? '' }}

@if(!empty($becomeInstructorSection['button1']) and !empty($becomeInstructorSection['button1']['title']) and !empty($becomeInstructorSection['button1']['link'])) {{ $becomeInstructorSection['button1']['title'] }} @endif @if(!empty($becomeInstructorSection['button2']) and !empty($becomeInstructorSection['button2']['title']) and !empty($becomeInstructorSection['button2']['link'])) {{ $becomeInstructorSection['button2']['title'] }} @endif
{{ $becomeInstructorSection['title'] }} circle dots
user name
{{ trans('update.become_an_instructor') }} {{ trans('update.become_instructor_tagline') }}
@endif @if($homeSection->name == \App\Models\HomeSection::$forum_section and !empty($forumSection))
{{ $forumSection['title'] }} circle dots

{{ $forumSection['title'] ?? '' }}

{{ $forumSection['description'] ?? '' }}

@if(!empty($forumSection['button1']) and !empty($forumSection['button1']['title']) and !empty($forumSection['button1']['link'])) {{ $forumSection['button1']['title'] }} @endif @if(!empty($forumSection['button2']) and !empty($forumSection['button2']['title']) and !empty($forumSection['button2']['link'])) {{ $forumSection['button2']['title'] }} @endif
@endif @if($homeSection->name == \App\Models\HomeSection::$video_or_image_section and !empty($boxVideoOrImage))

{{ $boxVideoOrImage['title'] ?? '' }}

{{ $boxVideoOrImage['description'] ?? '' }}

@endif @if($homeSection->name == \App\Models\HomeSection::$instructors and !empty($instructors) and !$instructors->isEmpty())

{{ trans('home.instructors') }}

{{ trans('home.instructors_hint') }}

{{ trans('home.all_instructors') }}
@endif {{-- Ads Bannaer --}} @if($homeSection->name == \App\Models\HomeSection::$half_advertising_banner and !empty($advertisingBanners2) and count($advertisingBanners2))
@foreach($advertisingBanners2 as $banner2) @endforeach
@endif {{-- ./ Ads Bannaer --}} @if($homeSection->name == \App\Models\HomeSection::$organizations and !empty($organizations) and !$organizations->isEmpty())

{{ trans('home.organizations') }}

{{ trans('home.organizations_hint') }}

{{ trans('home.all_organizations') }}
@endif @if($homeSection->name == \App\Models\HomeSection::$blog and !empty($blog) and !$blog->isEmpty())

{{ trans('home.blog') }}

{{ trans('home.blog_hint') }}

{{ trans('home.all_blog') }}
@foreach($blog as $post)
@include('web.default.blog.grid-list',['post' =>$post])
@endforeach
@endif @endforeach @endsection @push('scripts_bottom') @endpush