@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_subtitle) }}

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

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

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

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

feature
{{ __(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')) }}

{{ __('View All') }}
@if (count($featuredCourses)) @else {{ __('No Course Found') }} @endif
@endif @if ($home->category_courses_area == 1)

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

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

@foreach ($featureCategories as $key => $category)
@foreach ($category->courses->take(4) as $course) @php $userRelation = getUserRoleRelation($course->user); @endphp
@include('frontend-theme-2.partials.course-card-horizontal')
@endforeach
@endforeach
@endif @if (isAddonInstalled('LMSZAIPRODUCT')) @if ($home->product_area == 1)
{{ __('Product') }}

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

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

{{ __('View All') }}
{{-- Extensive Product slider start --}}
{{-- Extensive Product slider end --}}
@endif @endif @if ($home->bundle_area == 1) @if (count($bundles) > 0)
{{ 'Bundle' }}

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

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

{{ __('View All') }}
@endif @endif @endif @if ($home->upcoming_courses_area == 1)
Course

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

{{ __(get_option('upcoming_course_subtitle')) }}

{{ __('View All') }}
@if (count($upcomingCourses)) @php $course = $upcomingCourses->first(); $userRelation = getUserRoleRelation($course->user); @endphp
@include('frontend-theme-2.partials.upcoming-course')
@foreach ($upcomingCourses->skip(1)->take(2) as $course) @php $userRelation = getUserRoleRelation($course->user); @endphp
{{ __('Upcoming') }} course
{{ Str::limit($course->title, 40) }}

{{ $course->$userRelation->name }} @foreach ($course->$userRelation->awards as $award) | {{ $award->name }} @endforeach

{{ @$course->average_rating }}
★★★★★
★★★★★
({{ @$course->reviews->count() }})
@if ($course->learner_accessibility == 'paid') @if (now()->gt($startDate) && now()->lt($endDate))
{{ __('Price') }}: @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)
{{ __('Price') }}: @if ($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @if ($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->old_price }} @endif
@else
{{ __('Price') }}: @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 @if ($course->learner_accessibility != 'free' && get_option('cashback_system_mode', 0))
{{ __('Cashback') }}: @if ($currencyPlacement ?? get_currency_placement() == 'after') {{ calculateCashback($course->price) }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ calculateCashback($course->price) }} @endif
@elseif(get_option('cashback_system_mode', 0))
{{ __('Cashback') }}: 0
@endif
@endforeach
@else {{ __('No Course Found') }} @endif
@endif @if (!get_option('private_mode') || !auth()->guest()) @if ($home->consultation_area == 1) @if (count($consultationInstructors) > 0)
Consultant

{{ __('Personalized Training') }}

{{ __('Consult with your favorite consultant!') }}

{{ __('View All') }}
@foreach ($consultationInstructors as $user)
{{ __('instructor') }}
{{ $user->name }}

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