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

@foreach ($allCourses as $course) @if ($loop->iteration <= 8)
Product
{{ $course->categoryName }}
{{ strlen($course->title) > 45 ? mb_substr($course->title, 0, 45, 'UTF-8') . '...' : $course->title }}
@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
@if ($course->pricing_type == 'premium') @if ($course->current_price) {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ $course->current_price }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @if ($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 {{ $keywords['free'] ?? __('Free') }} @endif @if ($course->moduleCount > 0) {{ $course->moduleCount }} @endif @if ($course->moduleCount > 0) @if ($course->moduleCount == 1) {{ $keywords['lesson'] ?? __('Lesson') }} @else {{ $keywords['lessons'] ?? __('Lessons') }} @endif @else {{ $keywords['no_lesson'] ?? __('No Lesson') }} @endif
@endif @endforeach
@if ($allCourses->count() > 4) @endif
@forelse ($categories as $category)
@if (count($category->courseInfoList) > 0)
@foreach ($category->courseInfoList()->take(8)->get() as $courseInfo) @if ($courseInfo->course) @if ($courseInfo->course->status == 'published')
Product
{{ $category->name }}
{{ strlen($courseInfo->title) > 45 ? mb_substr($courseInfo->title, 0, 45, 'UTF-8') . '...' : $courseInfo->title }}
@if ($courseInfo->instructor) @endif @php $period = $courseInfo->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
@if ($course->pricing_type == 'premium') @if ($course->current_price) {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ $courseInfo->course->current_price }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @if ($course->previous_price) {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ $courseInfo->course->previous_price }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @else {{ $keywords['free'] ?? __('Free') }} @endif @if ($courseInfo->module()->where('status', 'published')->count() > 0) {{ $courseInfo->module()->where('status', 'published')->count() }} @endif @if ($courseInfo->module()->where('status', 'published')->count() > 0) @if ($courseInfo->module()->where('status', 'published')->count() == 1) {{ $keywords['lesson'] ?? __('Lesson') }} @else {{ $keywords['lessons'] ?? __('Lessons') }} @endif @else {{ $keywords['no_lesson'] ?? __('No Lesson') }} @endif
@endif @endif @endforeach
@if (count($category->courseInfoList) > 8) @endif @else

{{ $keywords['no_course_found'] ?? __('No Course Found') }}

@endif
@empty
{{ $keywords['no_featured_course_category_found'] ?? __('No Featured Course Category Found') }}
@endforelse
Shape Shape Shape Shape