@extends('frontend.layout') @section('pageHeading') {{ __('Home') }} @endsection @section('metaKeywords') @if (!empty($seoInfo)) {{ $seoInfo->meta_keyword_home }} @endif @endsection @section('metaDescription') @if (!empty($seoInfo)) {{ $seoInfo->meta_description_home }} @endif @endsection @section('style') @php $newletterBg = !empty($newsletterData->background_image) ? asset('assets/img/newsletter-section/' . $newsletterData->background_image) : asset('assets/img/static/newsletter.jpeg') @endphp @if ($secInfo->newsletter_section_status == 1) @endif @endsection @section('content')
{{ __('Find Your Dream Course') }}
@auth
@csrf
@endauth @guest @endguest
@if ($secInfo->course_categories_section_status == 1)

{{ !empty($secTitleInfo->category_section_title) ? $secTitleInfo->category_section_title : '' }}

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

{{ __('No Course Category Found') . '!' }}

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

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

@endif @if ($secInfo->featured_courses_section_status == 1)

{{ !empty($secTitleInfo->featured_courses_section_title) ? $secTitleInfo->featured_courses_section_title : '' }}

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

{{ __('No Featured Course Found') . '!' }}

@else
@foreach ($courses as $course)

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

@if (isset($_SESSION['coupon_id']) && strlen($_SESSION['coupon_id']) < 1)
@if ($course->pricing_type == 'premium') {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ $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 : '' }}{{ $course->previous_price }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @else {{ __('Free') }} @endif
@endif
    @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
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif @endif
@endif @if ($secInfo->features_section_status == 1) @if (count($features) == 0)

{{ __('No Feature Found') . '!' }}

@else
@foreach ($features as $feature)

{{ $feature->title }}

{{ $feature->text }}

@endforeach
@endif @endif @if ($secInfo->video_section_status == 1)

{{ !empty($videoData) ? $videoData->title : '' }}

@if (!empty($videoData)) image
@endif
@endif @if ($secInfo->fun_facts_section_status == 1)
background_image)) data-bg="{{ asset('assets/img/fact-section/' . $factData->background_image) }}" @endif>

{{ !empty($factData) ? $factData->title : '' }}

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

{{ __('No Information Found') . '!' }}

@else
@foreach ($countInfos as $countInfo)

{{ $countInfo->amount }}+

{{ $countInfo->title }}
@endforeach
@endif
dot
@endif @if ($secInfo->testimonials_section_status == 1)
@if (count($testimonials) == 0)

{{ __('No Testimonial Found') . '!' }}

@else
@foreach ($testimonials as $testimonial)

{{ $testimonial->comment }}

client
{{ $testimonial->name }}
{{ $testimonial->occupation }}
@endforeach
@endif
@endif @if ($secInfo->newsletter_section_status == 1)

{{ !empty($newsletterData->title) ? $newsletterData->title : '' }}

{{ !empty($newsletterData->text) ? $newsletterData->text : '' }}

@csrf
@if (!empty($newsletterData->image))
image
@endif
@endif @endsection