@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 as $course) @php $userRelation = getUserRoleRelation($course->user); @endphp
@include('frontend-theme-4.partials.course')
@endforeach @else {{ __("No Course Found") }} @endif
@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(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->current_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $product->current_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $product->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $product->old_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->bundle_area == 1) @if(count($bundles) > 0)

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

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

@foreach($bundles->take(4) as $bundle) @php $relation = getUserRoleRelation($bundle->user) @endphp
{{ Str::limit($bundle->name, 40) }} {{ @$bundle->user->$relation->name }}

{{__('Courses')}}: {{ @$bundle->bundleCourses->count() }}

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

@if(get_option('cashback_system_mode', 0))
{{__('Cashback')}} :
@if($currencyPlacement ?? get_currency_placement() == 'after') {{calculateCashback($bundle->price) }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{calculateCashback($bundle->price) }} @endif
@endif
@endforeach
@endif @endif @if($home->upcoming_courses_area == 1)

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

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

@if(count($upcomingCourses)) @else {{ __("No Course Found") }} @endif
@endif @if($home->instructor_area == 1)

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

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

@foreach ($instructors->take(4) as $instructorUser) @php $average_rating = $instructorUser->courses->where('average_rating', '>', 0)->avg('average_rating'); @endphp @endforeach
@endif @if (@$home->subscription_show == 1 && get_option('subscription_mode'))

{{ __('Subscribe Now!') }}

{{ __('#Choose a subscription plan and save money!') }}

{{ __('Monthly') }}

{{__('Yearly')}}

@php $matched = $subscriptions->where('id', @$mySubscriptionPackage->package_id)->first(); $disabledYearly = (!is_null($matched) && $mySubscriptionPackage->subscription_type == SUBSCRIPTION_TYPE_YEARLY ? true : false); $disabledMonthly = ($disabledYearly) ? true : (!is_null($matched) && $mySubscriptionPackage->subscription_type == SUBSCRIPTION_TYPE_MONTHLY ? true : false); @endphp @foreach ($subscriptions as $index => $subscription) @php $isCurrentMonthly = (($subscription->id == @$mySubscriptionPackage->package_id && @$mySubscriptionPackage->subscription_type) == SUBSCRIPTION_TYPE_MONTHLY); $isCurrentYearly = (($subscription->id == @$mySubscriptionPackage->package_id && @$mySubscriptionPackage->subscription_type) == SUBSCRIPTION_TYPE_YEARLY); $priceMonthly = $subscription->discounted_monthly_price; $oldPriceMonthly = $subscription->monthly_price; $priceYearly = $subscription->discounted_yearly_price; $oldPriceYearly = $subscription->yearly_price; @endphp
{{ $subscription->title }}

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

@if($priceMonthly < 1)

{{__('Full Free')}}

@else

{{ $priceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceMonthly != $oldPriceMonthly)

{{ $oldPriceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif @if($priceYearly < 1)

{{__('Full Free')}}

@else

{{ $priceYearly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceYearly != $oldPriceYearly)

{{ $oldPriceYearly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif
{{--
--}} {{-- --}} {{--
--}}
  • {{ __('Unlimited access to').' '. $subscription->course. __(' course') }}

  • {{ __('Access to').' '. $subscription->bundle_course.' '.__('bundle course') }}

  • {{ __("Buy") .' '. $subscription->consultancy.' '.__('Consultancy Hour') }}

  • {{ $subscription->device .' '. __("Devices Access") }}

@csrf
@php if($disabledMonthly && $subscription->id == $matched->id){ $disabledMonthly = false; } if($disabledYearly && $subscription->id == $matched->id){ $disabledYearly = false; } @endphp @endforeach
@endif @if($home->customer_says_area == 1)

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

{{--
--}}
@php // Define the array of items (first, second, third, fourth) $customerSayItems = ['first', 'second', 'third', 'fourth']; @endphp
@endif @if (@$home->saas_show == 1 && get_option('saas_mode'))

{{ __('Saas Plan') }}

{{ __('#Choose a saas plan and save money!') }}

{{__('Monthly')}}

{{__('Yearly')}}

@php $matched = $instructorSaas->where('id', @$mySaasPackage->package_id)->first(); $disabledYearly = (!is_null($matched) && $mySaasPackage->subscription_type == SUBSCRIPTION_TYPE_YEARLY ? true : false); $disabledMonthly = ($disabledYearly) ? true : (!is_null($matched) && $mySaasPackage->subscription_type == SUBSCRIPTION_TYPE_MONTHLY ? true : false); @endphp @foreach($instructorSaas as $index => $saas) @php $isCurrentMonthly = (($saas->id == @$mySaasPackage->package_id && @$mySaasPackage->subscription_type) == SUBSCRIPTION_TYPE_MONTHLY); $isCurrentYearly = (($saas->id == @$mySaasPackage->package_id && @$mySaasPackage->subscription_type) == SUBSCRIPTION_TYPE_YEARLY); $priceMonthly = $saas->discounted_monthly_price; $oldPriceMonthly = $saas->monthly_price; $priceYearly = $saas->discounted_yearly_price; $oldPriceYearly = $saas->yearly_price; @endphp

{{ $saas->title }}

@if($priceMonthly < 1)

{{__('Full Free')}}

@else

{{ $priceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceMonthly != $oldPriceMonthly)

{{ $oldPriceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif @if($priceYearly < 1)

{{__('Full Free')}}

@else

{{ $priceYearly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceYearly != $oldPriceYearly)

{{ $oldPriceYearly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif
{{--
--}} {{--
--}}
  • {{ __('Unlimited Create ').' '. $saas->course. ' '.__('Course') }}

  • {{ __("Create") .' '. $saas->bundle_course.' '.__('Bundle Course') }}

  • {{ __("Enable") .' '. $saas->subscription_course.' '.__('Subscription Course') }}

  • {{ __("Give") .' '. $saas->consultancy.' '.__('hour consultancy') }}

  • {{ __("Minimum of") .' '. $saas->admin_commission .'% '.__('sale commission')}}

@csrf
@php if($disabledMonthly && $saas->id == $matched->id){ $disabledMonthly = false; } if($disabledYearly && $saas->id == $matched->id){ $disabledYearly = false; } @endphp @endforeach

{{__('Monthly')}}

{{__('Yearly')}}

@php $matched = $organizationSaas->where('id', @$mySaasPackage->package_id)->first(); $disabledYearly = (!is_null($matched) && $mySaasPackage->subscription_type == SUBSCRIPTION_TYPE_YEARLY ? true : false); $disabledMonthly = ($disabledYearly) ? true : (!is_null($matched) && $mySaasPackage->subscription_type == SUBSCRIPTION_TYPE_MONTHLY ? true : false); @endphp @foreach($organizationSaas as $index => $saas) @php $isCurrentMonthly = (($saas->id == @$mySaasPackage->package_id && @$mySaasPackage->subscription_type) == SUBSCRIPTION_TYPE_MONTHLY); $isCurrentYearly = (($saas->id == @$mySaasPackage->package_id && @$mySaasPackage->subscription_type) == SUBSCRIPTION_TYPE_YEARLY); $priceMonthly = $saas->discounted_monthly_price; $oldPriceMonthly = $saas->monthly_price; $priceYearly = $saas->discounted_yearly_price; $oldPriceYearly = $saas->yearly_price; @endphp

{{ $saas->title }}

@if($priceMonthly < 1)

{{__('Full Free')}}

@else

{{ $priceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceMonthly != $oldPriceMonthly)

{{ $oldPriceMonthly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif @if($priceYearly < 1)

{{__('Full Free')}}

@else

{{ $priceYearly.($currencySymbol ?? get_currency_symbol()) }}

@if($priceYearly != $oldPriceYearly)

{{ $oldPriceYearly.($currencySymbol ?? get_currency_symbol()) }}

@endif @endif
{{--
--}} {{--
--}}
  • {{ __("Unlimited create of").' '. $saas->instructor.' '.__('instructor') }}

  • {{ __("Create ").' '. $saas->student.' '.__('student') }}

  • {{ __('Unlimited Create ').' '. $saas->course. ' '.__('Course') }}

  • {{ __("Create") .' '. $saas->bundle_course.' '.__('Bundle Course') }}

  • {{ __("Enable") .' '. $saas->subscription_course.' '.__('Subscription Course') }}

  • {{ __("Give") .' '. $saas->consultancy.' '.__('hour consultancy') }}

  • {{ __("Minimum of") .' '. $saas->admin_commission .'% '.__('sale commission')}}

@csrf
@php if($disabledMonthly && $saas->id == $matched->id){ $disabledMonthly = false; } if($disabledYearly && $saas->id == $matched->id){ $disabledYearly = false; } @endphp @endforeach
@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