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

{{ $cats->title }}

@if(isset($subcat))

Sub Categories

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

Sub Categories

@foreach($childcat as $cat) @if($cat->status == 1) @endif @endforeach
@endif
@php $instructors = App\User::where('role', 'instructor')->get(); @endphp @if(! $instructors->isEmpty())

Popular Instructors

@endif

{{ $cats->title }} Courses

@foreach($courses as $course) @if($course->status == 1)
@if($course['preview_image'] !== NULL && $course['preview_image'] !== '') course @else course @endif
  • All Levels

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

    @if($course->type == 1) @php $currency = App\Currency::first(); @endphp @if($course->discount_price == !NULL)
  • {{ $course->discount_price }} {{ $course->price }}
  • @else
  • {{ $course->price }}
  • @endif @else
  • Free
  • @endif
@if($course['whatlearns']->isNotEmpty())
What you will learn
@foreach($course['whatlearns'] as $wl) @if($wl->status ==1)
  • {{ str_limit($wl['detail'], $limit = 120, $end = '...') }}
@endif @endforeach
@endif

@endif @endforeach
@endsection