@extends("front.$version.layout") @section('pagename') - {{__('All Courses')}} @endsection @section('styles') @endsection @section('breadcrumb-title', $bex->course_title) @section('breadcrumb-subtitle', $bex->course_subtitle) @section('breadcrumb-link', __('Courses')) @section('content') {{-- featured course start --}} @if (count($featured_courses) > 0)
@if (count($featured_courses) == 0)

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

@else

{{__('OUR FEATURED COURSES')}}

@foreach ($featured_courses as $featured_course)

{{strlen($featured_course->title) > 30 ? mb_substr($featured_course->title, 0, 30, 'utf-8') . '...' : $featured_course->title}}

@if (empty($featured_course->current_price)) {{ __('Free') }} @else {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $featured_course->current_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @if (!empty($featured_course->previous_price)) {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $featured_course->previous_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @endif @endif
{{$featured_course->coursePurchase()->where('payment_status', 'Completed')->count()}} {{__('Students')}} {{ $featured_course->duration }}
@endforeach
@endif
{{-- featured course end --}} @endif {{-- all courses start --}}

{{ __('Course Type') }}

input('checked_value') == 'all' || empty(request()->input('checked_value')) ? 'checked' : '' }} >
input('checked_value') == 'free' ? 'checked' : '' }} >
input('checked_value') == 'premium' ? 'checked' : '' }} >
@if ($bex->is_course_rating == 1)

{{ __('Filter By Rating') }}

input('rating') == 'all' || request()->input('rating') == '' ? 'checked' : '' }} >
input('rating') == 5 ? 'checked' : '' }} >
input('rating') == 4 ? 'checked' : '' }} >
input('rating') == 3 ? 'checked' : '' }} >
input('rating') == 2 ? 'checked' : '' }} >
input('rating') == 1 ? 'checked' : '' }} >
@endif

{{ __('Filter By Price') }}

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

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

@else @foreach ($courses as $course)

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

@if (empty($course->current_price)) {{ __('Free') }} @else {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $course->current_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @if (!empty($course->previous_price)) {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $course->previous_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @endif @endif
{{$course->coursePurchase()->where('payment_status', 'Completed')->count()}} {{__('Students')}} {{ $course->duration }}
@endforeach @endif
{{-- all courses end --}} {{-- search form --}}
@if($bex->is_course_rating == 1) @endif
{{-- end of search form --}} @php $maxPrice = App\Course::max('current_price'); $minPrice = App\Course::min('current_price'); @endphp @endsection @section('scripts') @endsection