@extends('theme.master') @section('title', "$cats->title") @section('content') @include('admin.message') @if($gsetting->category_enable == 1)
@endif @php $gets = App\Breadcum::first(); @endphp @if(isset($gets))
@if($gets['img'] !== NULL && $gets['img'] !== '') @else course @endif

{{ $cats->title }}

@endif @if(isset($subcat))

{{ __('SubCategories') }}

@foreach($subcat as $cat) @if($cat->status == 1) @endif @endforeach
@elseif(isset($childcat))

{{ __('SubCategories') }}

@foreach($childcat as $cat) @if($cat->status == 1) @endif @endforeach
@else
@endif

{{ $cats->title }} {{ __('Courses') }}

@php $categories = App\Categories::orderBy('position','ASC')->get(); @endphp
@foreach($categories->where('status', '1') as $cate)
@foreach($cate->subcategory as $sub) @if($sub->status ==1)
@foreach($sub->childcategory as $child) @if($child->status ==1)
@endif @endforeach
@endif @endforeach
@endforeach
  • input('type') == 'paid' ? 'checked' : '' }} class="form-check-input type" type="radio" name="type" id="flexRadioDefaultpaid" value="paid">
  • input('type') == 'free' ? 'checked' : '' }} class="form-check-input type" type="radio" name="type" id="flexRadioDefaultfree" value="free">
@php $CourseLanguage = App\CourseLanguage::get(); @endphp @foreach($CourseLanguage as $lang)
  • input('lang') == $lang->id ? 'checked' : '' }} class="form-check-input lang" type="radio" name="lang" id="flexRadioDefault{{ $lang->id }}" value="{{ $lang->id }}">
@endforeach
@php $test = count($courses); @endphp @if($test != 0) @foreach($courses as $course) @if($course->country != '') @if( !in_array($usercountry, $course->country) )
@if($course['preview_image'] !== NULL && $course['preview_image'] !== '') course @else course @endif @if($course['level_tags'] == !NULL)
{{ $course['level_tags'] }}
@endif
  • @if(Auth::check())
  • @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if ($wish == NULL)
  • {{ csrf_field() }}
  • @else
  • {{ csrf_field() }}
  • @endif @else
  • @endif
  • @php $data = App\CourseClass::where('course_id', $course->id)->count(); if($data>0){ echo $data; } else{ echo "0"; } @endphp {{ __('Classes') }}
  • @php $classtwo = App\CourseClass::where('course_id', $course->id)->sum("duration"); @endphp {{ $classtwo }} {{ __('Minutes')}}
  • @php $enroll = App\Order::where('course_id', $course->id)->count(); if($enroll>0){ echo $enroll; } else{ echo "0"; } @endphp {{ __('Students') }}
  • @if(isset($course->level_tags))
    {{ optional($course)->level_tags }}
    @endif

{{ str_limit($course->short_detail, $limit = 125, $end = '..') }}

    @if($course->type == 1) @if($course->discount_price == !NULL)
  • {{ currency($course->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }} 
    {{ currency($course->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
  • @else @if($course->price == !NULL)
  • {{ currency($course->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
  • @endif @endif @else
  • {{ __('Free') }}
  • @endif