@extends('user-front.layout') @section('tab-title') {{ $keywords['Home'] ?? 'Home' }} @endsection @php Config::set('app.timezone', $userBs->timezoneinfo->timezone); @endphp @section('styles') @php $img = !empty($home_text->newsletter_snd_image) ? asset('assets/front/img/user/home_settings/' . $home_text->newsletter_snd_image) : asset('assets/front/img/themes/community-bg.jpg'); @endphp @endsection @section('meta-description', !empty($userSeo) ? $userSeo->home_meta_description : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->home_meta_keywords : '') @section('content')
{{ $keywords['find_your_dream_course'] ?? __('Find Your Dream Course') }}
@if (isset($home_sections->category_section) && $home_sections->category_section == 1)

{{ @$home_text->category_section_title }}

@if (count($categories) == 0)

{{ $keywords['no_course_category_found'] ?? __('No Course Category Found!') }}

@else
@foreach ($categories as $category) @endforeach
@endif
@endif @if (isset($home_sections->call_to_action_section_status) && $home_sections->call_to_action_section_status == 1)
{{ !empty($callToActionInfo) ? $callToActionInfo->first_title : '' }}

{{ !empty($callToActionInfo) ? $callToActionInfo->second_title : '' }}

@endif @if (isset($home_sections->featured_courses_section_status) && $home_sections->featured_courses_section_status == 1)

{{ @$home_text->featured_course_section_title }}

@if (count($courses) == 0)

{{ $keywords['no_featured_course_found'] ?? __('No Featured Course Found') }} {{ '!' }}

@else
@foreach ($courses as $course)

{{ strlen($course->title) > 45 ? mb_substr($course->title, 0, 45, 'UTF-8') . '...' : $course->title }}

instructor

{{ strlen($course->instructorName) > 10 ? mb_substr($course->instructorName, 0, 10, 'utf-8') . '...' : $course->instructorName }}

@if ($course->pricing_type == 'premium') {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ formatNumber($course->current_price) }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @if (!is_null($course->previous_price)) {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ formatNumber($course->previous_price) }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @else {{ $keywords['free'] ?? __('Free') }} @endif
  • {{ $course->enrolmentCount . ' ' }} {{ $keywords['students'] ?? __('Students') }}
  • @php $period = $course->duration; $array = explode(':', $period); $hour = $array[0]; $courseDuration = \Carbon\Carbon::parse($period); @endphp
  • {{ $hour == '00' ? '00' : $courseDuration->format('h') }}h {{ $courseDuration->format('i') }}m
@endforeach
@endif @if (is_array($packagePermissions) && in_array('Advertisement', $packagePermissions)) @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif @endif
@endif @if (isset($home_sections->featured_section) && $home_sections->featured_section == 1) @if (count($features) == 0)

{{ $keywords['No_Feature_Found'] ?? __('No Feature Found') }}

@else
@foreach ($features as $feature)

{{ $feature->title }}

{{ $feature->text }}

@endforeach
@endif @endif @if (isset($home_sections->video_section) && $home_sections->video_section == 1)
@if (!empty($videoData)) image @if (!empty($videoData->video_section_url))
@endif
@else image
@endif
@endif @if (isset($home_sections->counter_info_section) && $home_sections->counter_info_section == 1)
@if (count($countInfos) == 0)

{{ $keywords['no_information_found'] ?? __('No Information Found!') }}

@else
@foreach ($countInfos as $countInfo)

{{ $countInfo->count }}+

{{ $countInfo->title }}
@endforeach
@endif
dot
@endif @if (isset($home_sections->testimonials_section) && $home_sections->testimonials_section == 1)
@if (count($testimonials) == 0)

{{ $keywords['no_testimonial_found'] ?? __('No Testimonial Found') }} {{ '!' }}

@else
@foreach ($testimonials as $testimonial)

{!! replaceBaseUrl($testimonial->content) !!}

client
{{ $testimonial->name }}
{{ convertUtf8($testimonial->occupation) ?? null }}
@endforeach
@endif
@endif @if (isset($home_sections->newsletter_section) && $home_sections->newsletter_section == 1)

{{ @$home_text->newsletter_title }}

{{ @$home_text->newsletter_subtitle }}

community
@endif @endsection