@extends('frontend.layouts.app') @section('meta') @php $metaData = getMeta('home'); @endphp @if (isAddonInstalled('LMSZAIPRODUCT')) @endif @endsection @push('theme-style') @endpush @section('content') @php $bannerImage = @$home->banner_image; if(env('IS_LOCAL', 0)){ $bannerImage = get_option('banner_image_'.get_option('theme', THEME_DEFAULT)); } @endphp
@foreach(@$home->banner_mini_words_title ?? [] as $banner_mini_word)

{{ __($banner_mini_word) }}

@endforeach

{{ __(@$home->banner_first_line_title) }} {{ __(@$home->banner_second_line_title) }} {{ __(@$home->banner_third_line_title) }} {{ __(@$home->banner_fourth_line_title) }}

{{ __(@$home->banner_subtitle) }}

{{ __(get_option('home_special_feature_title')) }}

{{ __(get_option('home_special_feature_area_subtitle')) }}

{{ __(get_option('home_special_feature_first_title')) }}

{{ __(get_option('home_special_feature_first_subtitle')) }}

{{ __(get_option('home_special_feature_second_title')) }}

{{ __(get_option('home_special_feature_second_subtitle')) }}

{{ __(get_option('home_special_feature_third_title')) }}

{{ __(get_option('home_special_feature_third_subtitle')) }}

@if(!get_option('private_mode') || !auth()->guest()) @if($home->courses_area == 1)
Course

{{ __(get_option('course_title')) }}

{{ __(get_option('course_subtitle')) }}

@if(count($featuredCourses)) @foreach ($featuredCourses->take(6) as $key =>$course) @php $userRelation = getUserRoleRelation($course->user); // Calculate class dynamically based on index $position = $key + 1; // Convert 0-based index to 1-based if ($position % 9 == 2 || $position % 9 == 5 || $position % 9 == 7) { $courseClass = 'course-item-five-blue'; } elseif ($position % 9 == 3 || $position % 9 == 6 || $position % 9 == 9) { $courseClass = 'course-item-five-yellow'; } else { $courseClass = ''; // Default class for other positions } @endphp
{{__('PRICE')}}: @if($course->learner_accessibility == 'paid') @if(now()->gt($startDate) && now()->lt($endDate)) @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $discount_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $discount_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @elseif ($course->price <= $course->old_price) @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->old_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @else @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @endif @elseif($course->learner_accessibility == 'free') {{ __('Free') }} @endif
@endforeach @else {{ __("No Course Found") }} @endif
@endif @endif @if($home->bundle_area == 1) @if(count($bundles) > 0)

{{ __(get_option('bundle_course_title')) }}

{{ __(get_option('bundle_course_subtitle')) }}

@foreach($bundles->take(4) as $key => $bundle) @php $relation = getUserRoleRelation($bundle->user); // Calculate class dynamically based on index $position = $key + 1; // Convert 0-based index to 1-based if ($position % 9 == 2 || $position % 9 == 5 || $position % 9 == 7) { $courseClass = 'course-item-five-blue'; } elseif ($position % 9 == 3 || $position % 9 == 6 || $position % 9 == 9) { $courseClass = 'course-item-five-yellow'; } else { $courseClass = ''; // Default class for other positions } @endphp

{{__('PRICE')}}: @if($currencyPlacement == 'after') {{$bundle->price}} {{ $currencySymbol }} @else {{ $currencySymbol }} {{$bundle->price}} @endif

@endforeach
@endif @endif @if($home->category_courses_area == 1)

{{ __(get_option('category_course_title')) }}

{{ __(get_option('category_course_subtitle')) }}

@foreach($featureCategories->take(8) as $key => $category) @endforeach
@endif @if($home->upcoming_courses_area == 1)

{{ __(get_option('upcoming_course_title')) }}

{{ __(get_option('upcoming_course_title')) }}

@if(count($upcomingCourses)) @foreach ($upcomingCourses->take(3) as $key => $course) @php $userRelation = getUserRoleRelation($course->user); // Calculate class dynamically based on index $position = $key + 1; // Convert 0-based index to 1-based if ($position % 9 == 2 || $position % 9 == 5 || $position % 9 == 7) { $courseClass = 'course-item-five-blue'; } elseif ($position % 9 == 3 || $position % 9 == 6 || $position % 9 == 9) { $courseClass = 'course-item-five-yellow'; } else { $courseClass = ''; // Default class for other positions } @endphp
{{__('Upcoming')}} {{__('PRICE')}}: @if($course->learner_accessibility == 'paid') @if(now()->gt($startDate) && now()->lt($endDate)) @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $discount_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $discount_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @elseif ($course->price <= $course->old_price) @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->old_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @else @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @endif @elseif($course->learner_accessibility == 'free') {{ __('Free') }} @endif
@endforeach @else {{ __("No Course Found") }} @endif
@endif @if(isAddonInstalled('LMSZAIPRODUCT')) @if($home->product_area == 1)

{{ __(get_option('product_section_title')) }} @if(env('LOGIN_HELP') == 'active') (Addon) @endif

{{ __(get_option('product_section_subtitle')) }}

@foreach($products->take(6) as $product) @php $relation = getUserRoleRelation($product->user) @endphp
{{$product->title}}
{{$product->title}} @php $reviewCount = $product->reviews()->count(); $averate_percent = $product->average_review * 20; @endphp
{{ number_format(@$product->average_review, 1) }}
★★★★★
★★★★★
({{ $reviewCount }})

{{__('Price')}}: @if($product->old_price > $product->current_price) @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $product->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $product->old_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $product->current_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $product->current_price }} @endif @else @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $product->current_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $product->current_price }} @endif @endif

@if($product->quantity > 0) @else @endif
@endforeach
@endif @endif @if($home->instructor_area == 1)

{{ __(get_option('top_instructor_title')) }}

{{ __(get_option('top_instructor_subtitle')) }}

@foreach ($instructors->take(4) as $user) @endforeach
@endif @if (@$home->subscription_show == 1 && get_option('subscription_mode'))

Saas Plan

#CHOOSE A SAAS PLAN AND SAVE MONEY!

@include('frontend-theme-2.home.partial.subscription-home-list')
@endif @if($home->customer_says_area == 1)

{{ __(get_option('customer_say_title')) }}

{{ __(get_option('customer_say_sub_title')) }}

{{ __(get_option('customer_say_first_position')) }}

{{ __(get_option('customer_say_first_name')) }}

{{ __(get_option('customer_say_first_comment_description')) }}

★★★★★
★★★★★

{{ __(get_option('customer_say_second_position')) }}

{{ __(get_option('customer_say_second_name')) }}

{{ __(get_option('customer_say_second_comment_description')) }}

★★★★★
★★★★★

{{ __(get_option('customer_say_third_position')) }}

{{ __(get_option('customer_say_third_name')) }}

{{ __(get_option('customer_say_third_comment_description')) }}

★★★★★
★★★★★

{{ __(get_option('customer_say_fourth_position')) }}

{{ __(get_option('customer_say_fourth_name')) }}

{{ __(get_option('customer_say_fourth_comment_description')) }}

★★★★★
★★★★★
@endif @if (@$home->saas_show == 1 && get_option('saas_mode'))

Saas Plan

#CHOOSE A SAAS PLAN AND SAVE MONEY!

@include('frontend-theme-2.home.partial.instructor-saas-home-list') @include('frontend-theme-2.home.partial.organization-saas-home-list')
@endif @if($home->instructor_support_area == 1)

{{ __(@$aboutUsGeneral->instructor_support_title) }}

{{ __(@$aboutUsGeneral->instructor_support_subtitle) }}

@foreach($instructorSupports as $index => $instructorSupport)

{{ __($instructorSupport->title) }}

{{ __($instructorSupport->subtitle) }}

{{ __($instructorSupport->button_name) }}
@endforeach
@endif @if($home->faq_area == 1)

{{ __(get_option('faq_title')) }}

{{ __(get_option('faq_subtitle')) }}

@php $splitFaqs = $faqQuestions->split(2); @endphp
@foreach($splitFaqs->get(0) ?? [] as $key => $faqQuestion)

{{ __($faqQuestion->answer) }}

@endforeach
@php $labelIndex = count($splitFaqs->get(0) ?? []); @endphp @foreach($splitFaqs->get(1) ?? [] as $key => $faqQuestion)

{{ __($faqQuestion->answer) }}

@endforeach
@endif @include('frontend.home.partial.consultation-booking-schedule-modal') @endsection @push('style') @endpush @push('script') {{-- --}} @endpush