@extends('theme.master') @section('title', 'Online Courses') @section('content') @include('admin.message') / {{ __('frontstaticword.Courses') }} @if(count($courses) > 0) @foreach($courses as $course) @if($course->status == 1) @if($course['preview_image'] !== NULL && $course['preview_image'] !== '') @else @endif {{ str_limit($course->title, $limit = 30, $end = '...') }} @php $data = App\CourseClass::where('course_id', $course->id)->get(); if(count($data)>0){ echo count($data); } else{ echo "0"; } @endphp {{ __('frontstaticword.Classes') }} {{ str_limit($course->short_detail, $limit = 60, $end = '..') }} @php $currency = App\Currency::first(); @endphp @if($course->type == 1) @if($course->discount_price == !NULL) {{ $course->price }} {{ $course->discount_price }} @else {{ $course->price }} @endif @else {{ __('frontstaticword.Free') }} @endif
{{ str_limit($course->short_detail, $limit = 60, $end = '..') }}