@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('banner_left_card_title')) }}

{{ __(get_option('banner_left_card_description')) }}

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

{{ __(get_option('banner_right_card_description')) }}

{{-- instructor and support area start --}} @if ($home->instructor_support_area == 1)

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

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

@foreach ($instructorSupports as $instructorSupport)
{{ __('support') }}
{{ __($instructorSupport->title) }}

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

{{ __($instructorSupport->button_name) }}
@endforeach
@endif {{-- instructor and support area end --}} @if (!get_option('private_mode') || !auth()->guest()) {{-- Latest Bundle Courses area start --}} @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 {{-- Latest Bundle Courses area end --}} {{-- Course By Category section area start --}} @if ($home->category_courses_area == 1)
course

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

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

@foreach ($featureCategories as $key => $category)
@foreach ($category->courses->take(1) as $course) @php $userRelation = getUserRoleRelation($course->user); @endphp
@if ($course->status != STATUS_UPCOMING_APPROVED) @if (date('Y-m-d H:i:s', strtotime('-7 days')) >= $course->created_at) @if (in_array($course->id, $topCourse)) {{ __('Best Seller') }} @endif @else {{ __('New course') }} @endif @if ($special) {{ __(@$special) }} @endif @else {{ __('Upcoming') }} @endif {{ __('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
@endif
@endforeach
@endforeach
@endif {{-- Course By Category section area end --}} {{-- Extensive Product area start --}} @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') }}
@endif @endif {{-- Extensive Product area end --}} {{-- bundle-courses-area Bundle Courses area start --}} @if ($home->bundle_area == 1) @if (count($bundles) > 0)
{{ 'Bundle' }}

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

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

{{ __('View All') }}
@while (count($bundles))
@foreach ($bundles->take(2) as $bundle) @php $relation = getUserRoleRelation($bundle->user); @endphp
{{ Str::limit($bundle->name, 40) }}

{{ @$bundle->user->$relation->name }} @if (@$bundle->user->$relation->level_id != null) | {{ @$bundle->user->$relation->ranking_level->name }} @endif

{{ __('Courses') }}: {{ @$bundle->bundleCourses->count() }}
{{ __('Price') }}: @if ($currencyPlacement == 'after') {{ $bundle->price }} {{ $currencySymbol }} @else {{ $currencySymbol }} {{ $bundle->price }} @endif
@endforeach @php $bundles = $bundles->skip(2); @endphp
@endwhile
@endif @endif @endif {{-- bundle-courses-area Bundle Courses area end --}} {{-- Upcoming Course Section start --}} @if ($home->upcoming_courses_area == 1)
course

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

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

{{ __('View All') }}
@endif {{-- Upcoming Course Section end --}} {{-- Personalized Training section start --}} @if (!get_option('private_mode') || !auth()->guest()) @if ($home->consultation_area == 1) @if (count($consultationInstructors) > 0)
course

{{ __('Personalized Training') }}

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

{{ __('View All') }}