@extends('theme.master') @section('title', "$cats->title") @section('content') @include('admin.message')

{{ $cats->title }}

@if(isset($subcat))

{{ __('frontstaticword.SubCategories') }}

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

{{ __('frontstaticword.SubCategories') }}

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

{{ $cats->title }} {{ __('frontstaticword.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="flexRadioDefault" id="flexRadioDefault1" value="paid">
  • input('type') == 'free' ? 'checked' : '' }} class="form-check-input type" type="radio" name="flexRadioDefault" id="flexRadioDefault1" 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="flexRadioDefault" id="flexRadioDefault1" value="{{ $lang->id }}">
@endforeach
@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 {{ __('frontstaticword.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 {{ __('frontstaticword.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
  • {{ __('frontstaticword.Free') }}
  • @endif