@php if (!$course) { return; } $reviews = review($course); $imagePath = 'lms/courses/thumbnails'; $thumbnail = !empty($course?->thumbnail) && fileExists($imagePath, $course->thumbnail) ? asset("storage/{$imagePath}/{$course->thumbnail}") : asset('lms/frontend/assets/images/420x252.svg'); $translations = $translations ?? parse_translation($course); $categoryTranslations = parse_translation($course->category); $currency = $course?->coursePrice->currency ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); @endphp
Course thumbnail @auth @php $class = user_wishlist_check($course->id) ? 'active' : ''; @endphp @else @endauth
{{ translate('Lesson') }} : {{ $course->chapters?->count() ?? 0 }}
{{ translate('Student') }} : {{ $course->students?->count() ?? 0 }}
{{ $categoryTranslations['title'] ?? ($course->category->title ?? '') }}
{{ $translations['title'] ?? ($course->title ?? '') }}
@if (isset($course?->coursePrice) && $course?->coursePrice?->discount_flag == 1 && $course?->coursePrice?->discount_period != '' && dateCompare(data: $course?->coursePrice?->discount_period) == true) {{ $currencySymbol }}{{ dotZeroRemove($course?->coursePrice?->discounted_price ?? 0) }} {{ $currencySymbol }}{{ dotZeroRemove($course?->coursePrice?->price ?? 0) }} @else {{ $currencySymbol }}{{ dotZeroRemove($course?->coursePrice?->price ?? 0) }} @endif
{{ dotZeroRemove($reviews['average_rating']) ?? 0 }}