@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)) @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($home->upcoming_courses_area == 1)

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

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

@if(count($upcomingCourses)) @foreach ($upcomingCourses as $course) @php $userRelation = getUserRoleRelation($course->user); @endphp
@include('frontend-theme-4.partials.course')
@endforeach @else {{ __("No Course Found") }} @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(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($consultationInstructors->take(4) as $user)
@php $percent = $user->hourly_rate && $user->hourly_old_rate ? (($user->hourly_old_rate - $user->hourly_rate) * 100) / $user->hourly_old_rate : 0; @endphp @if ($percent && $user->consultation_available == 1) {{round(@$percent) }} {{ __('off') }} @endif
{{$user->name }}

{{ @$user->professional_title }} || @if(get_instructor_ranking_level($user->badges)) || {{ get_instructor_ranking_level($user->badges) }} @endif