@extends('theme.master') @section('title', 'Online Courses') @section('content') @include('admin.message') @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(Auth::check()) @php $enroll = App\Order::where('user_id', Auth::user()->id)->get(); @endphp @if( ! $enroll->isEmpty() ) {{ __('frontstaticword.MyCourses') }} @foreach($enroll as $enrol) @if($enrol->courses->status == 1 && $enrol->courses->featured == 1) @if($enrol->courses['preview_image'] !== NULL && $enrol->courses['preview_image'] !== '') @else @endif {{ str_limit($enrol->courses->title, $limit = 30, $end = '...') }} {{ __('frontstaticword.by') }} {{ $enrol->courses->user['fname'] }}
{{ $slider['sub_heading'] }}
{{ $slider['detail'] }}
{{ $fact['sub_heading'] }}
{{ __('frontstaticword.by') }} {{ $enrol->courses->user['fname'] }}