@extends('user-front.layout') @section('tab-title') {{ $keywords['Courses'] ?? 'Courses' }} @endsection @section('meta-description', !empty($userSeo) ? $userSeo->meta_description_course : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->meta_keyword_course : '') @section('page-name') {{ $keywords['Courses'] ?? 'Courses' }} @endsection @section('br-name') {{ $keywords['Courses'] ?? 'Courses' }} @endsection @section('content')
@if (count($courses) == 0)

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

@else @foreach ($courses as $course)

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

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

@if ($course->pricing_type == 'premium') {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }}{{ formatNumber($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 : '' }}{{ formatNumber($course->previous_price) }}{{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @endif @else {{ $keywords['Free'] ?? __('Free') }} @endif
  • {{ $course->enrolmentCount . ' ' }}{{ $keywords['students'] ?? __('Students') }}
  • @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 @endif
@if (count($courses) > 0) {{ $courses->appends([ 'type' => request()->input('type'), 'category' => request()->input('category'), 'min' => request()->input('min'), 'max' => request()->input('max'), 'keyword' => request()->input('keyword'), 'sort' => request()->input('sort'), ])->links() }} @endif
@if (is_array($packagePermissions) && in_array('Advertisement', $packagePermissions)) @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif @endif

{{ $keywords['course_type'] ?? __('Course Type') }}

  • input('type')) ? 'checked' : '' }} name="type" id="radio1" value="">
  • input('type') == 'free' ? 'checked' : '' }} name="type" id="radio2" value="free">
  • input('type') == 'premium' ? 'checked' : '' }} name="type" id="radio3" value="premium">
@if (count($categories) > 0)

{{ $keywords['Categories'] ?? __('Categories') }}

  • input('category')) ? 'checked' : '' }} name="category" id="all-category" value="">
  • @foreach ($categories as $category)
  • input('category') == $category->slug ? 'checked' : '' }} name="category" id="{{ 'catRadio' . $category->id }}" value="{{ $category->slug }}">
  • @endforeach
@endif

{{ $keywords['Filter_By_Price'] ?? __('Filter By Price') }}

  • {{ $keywords['price'] ?? __('Price') . ' :' }}
{{-- @if (is_array($packagePermissions) && in_array('Advertisement', $packagePermissions)) @if (!empty(showAd(2)))
{!! showAd(2) !!}
@endif @endif --}}
@endsection @section('scripts') @endsection