@extends('theme.master') @section('title', 'Online Courses') @section('content') @include('admin.message') @include('sweetalert::alert') @section('meta_tags') @endsection @if($gsetting->category_enable == 1) @foreach($category as $cat) @if($cat->status == 1) {{ $cat->title }} @endif @endforeach @endif @if(isset($sliders)) @foreach($sliders as $slider) @if($slider->status == 1) {{ $slider['heading'] }} {{ $slider['sub_heading'] }} {{ $slider['detail'] }} @if($slider->search_enable == 1) @endif @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) && isset($recent_course) && optional($recent_course)->status == 1) @if($total_count >= '0') {{ __('Recently Viewed Courses') }} @foreach($recent_course_id as $view) @php $recent_course = App\Course::where('id', $view)->with('user')->first(); @endphp @if(isset($recent_course)) @if($recent_course->status == 1) @if($recent_course['preview_image'] !== NULL && $recent_course['preview_image'] !== '') @else @endif @if($recent_course['level_tags'] == !NULL) {{ $recent_course['level_tags'] }} @endif @if($recent_course->user['user_img'] !== NULL && $recent_course->user['user_img'] !== '') @else @endif {{ str_limit($recent_course->title, $limit = 30, $end = '...') }} By {{ optional($recent_course->user)['fname'] }}
{{ $slider['sub_heading'] }}
{{ $slider['detail'] }}
{{ $fact['sub_heading'] }}