@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('content') @php if (!empty($heroInfo)) { $heroBg = asset('assets/img/hero-section/' . $heroInfo->background_image); } else { $heroBg = asset('assets/img/static/hero-3.jpeg'); } @endphp @if ($secInfo->features_section_status == 1)

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

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

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

@else
@foreach ($features as $feature) @php $color = $feature->background_color; @endphp

{{ $feature->title }}

{{ $feature->text }}

@endforeach
@endif
@endif @if ($secInfo->course_categories_section_status == 1)
@if (count($categories) == 0)

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

@else
@foreach ($categories as $category) @endforeach
@endif
@endif @if ($secInfo->about_us_section_status == 1)
@if (!empty($aboutUsInfo)) image @endif
{{ !empty($aboutUsInfo->title) ? $aboutUsInfo->title : '' }}

{{ !empty($aboutUsInfo->subtitle) ? $aboutUsInfo->subtitle : '' }}

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

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

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

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

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

@else
@foreach ($categories as $category)
@php $courses = $category->courses; @endphp @if (count($courses) == 0)

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

@else
@foreach ($courses as $course)
{{ strlen($course->title) > 40 ? mb_substr($course->title, 0, 40, 'UTF-8') . '...' : $course->title }}

{!! strlen(strip_tags($course->description)) > 80 ? mb_substr(strip_tags($course->description), 0, 80, 'UTF-8') . '...' : strip_tags($course->description) !!}

  • {{strlen($course->instructorName) > 12 ? mb_substr($course->instructorName, 0, 12, 'utf-8') . '...' : $course->instructorName}}
  • @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 (!empty($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

    {{ __('Price') . ':' }} {{ __('Free') }}

    @endif
@endforeach
@endif
@endforeach
@endif @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endif @if ($secInfo->newsletter_section_status == 1)

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

@csrf
@endif @if ($secInfo->fun_facts_section_status == 1)

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

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

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

@else
@foreach ($countInfos as $countInfo)
{{ $countInfo->amount }}+

{{ $countInfo->title }}

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

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

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

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

@else @endif @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endif @endsection