@extends('theme.master') @section('title', 'Online Courses') @section('content') @include('admin.message') @include('sweetalert::alert') @foreach($category as $cat) @if($cat->status == 1) {{ $cat->title }} @endif @endforeach @if(isset($sliders)) @foreach($sliders as $slider) @if($slider->status == 1) {{ $slider['heading'] }} {{ $slider['sub_heading'] }} {{ $slider['detail'] }} @endif @endforeach @endif @if(isset($facts)) @foreach($facts as $fact) {{ $fact['heading'] }} {{ $fact['sub_heading'] }} @endforeach @endif @if(isset($advs)) @foreach($advs as $adv) @if($adv->position == 'belowslider') @endif @endforeach @endif @if(Auth::check()) @if( isset($recent_course_id) ) @if($total_count !== 0) {{ __('frontstaticword.RecentlyViewedCourses') }} @foreach($recent_course_id as $view) @php $recent_course = App\Course::where('id', $view)->first(); @endphp @if(isset($recent_course)) @if($recent_course->status == 1 && $recent_course->featured == 1) @if($recent_course['preview_image'] !== NULL && $recent_course['preview_image'] !== '') @else @endif @if($recent_course['level_tags'] == !NULL) {{ $recent_course['level_tags'] }} @endif {{ str_limit($recent_course->title, $limit = 30, $end = '...') }} {{ __('frontstaticword.by') }} {{ $recent_course->user['fname'] }} {{ $recent_course->user['lname'] }}
{{ $slider['sub_heading'] }}
{{ $slider['detail'] }}
{{ $fact['sub_heading'] }}
{{ __('frontstaticword.by') }} {{ $recent_course->user['fname'] }} {{ $recent_course->user['lname'] }}