@if($whatlearns->isNotEmpty())
{{ __('frontstaticword.Whatlearn') }}
@foreach($course['whatlearns'] as $wl)
@if($wl->status ==1)
- {{ str_limit($wl['detail'], $limit = 120, $end = '...') }}
@endif
@endforeach
@endif
@if($coursechapters->isNotEmpty())
{{ __('frontstaticword.CourseContent') }}
@php
// FSMS
function convertToHoursMins($time, $format = '%02d:%02d') {
if ($time < 1) {
return;
}
$hours =floor($time / 60);
$minutes = ($time % 60);
return sprintf($format, $hours, $minutes);
}
$classtwo = App\CourseClass::where('course_id', $course->id)->sum("duration");
// echo $duration_round2 = round($classtwo,2);
$chapterCount = $coursechapters->count();
$classesCount = count(App\CourseClass::where('course_id', $course->id)->get());
$courseDuration = convertToHoursMins($classtwo, '%02dh %02dm total length');
// FSMS
@endphp
{{ $chapterCount . " sections • " .$classesCount . " lectures • " . $courseDuration }}
@foreach($coursechapters as $chapter)
@if($chapter->status == 1 and $chapter->count() > 0 )
@foreach($courseclass as $class)
@if($class->status == 1)
@if($class->coursechapter_id == $chapter->id)
@if($class->type =='video' )
@endif
@if($class->type =='audio' )
@endif
@if($class->type =='image' )
@endif
@if($class->type =='pdf' )
@endif
@if($class->type =='zip' )
@endif
|
{{ $class['title'] }}
@if($class->date_time != NULL)
Live at: {{ $class->date_time }}
@endif
@if($class->detail != NULL)
@endif
{!! $class->detail !!}
|
@if($class->preview_url != NULL || $class->preview_video != NULL )
{{ __('frontstaticword.preview') }}
@endif
|
@if($class->type =='video')
{{ $class['duration'] }}{{ __('frontstaticword.min') }}
@else
{{ $class['size'] }}mb
@endif
|
@endif
@endif
@endforeach
@endif
@endforeach
@endif
@auth
@php
$user_enrolled = App\Order::where('course_id', $course->id)->where('user_id', Auth::user()->id) ->first();
$bundle = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', '!=', NULL)->get();
$course_id = array();
foreach($bundle as $b)
{
$bundle = App\BundleCourse::where('id', $b->bundle_id)->first();
array_push($course_id, $bundle->course_id);
}
$course_id = array_values(array_filter($course_id));
$course_id = array_flatten($course_id);
@endphp
@if( $user_enrolled != NULL || Auth::user()->role == 'admin' || isset($course_id) || in_array($course->id, $course_id))
@if( ! $bigblue->isEmpty() )
{{ __('frontstaticword.BigBlueMeetings') }}
@foreach($bigblue as $bbl)
@if($bbl->is_ended != 1)
@endif
@endforeach
@endif
@if( ! $meetings->isEmpty() )
{{ __('frontstaticword.ZoomMeetings') }}
@foreach($meetings as $meeting)
@endforeach
@endif
{{-- googlemeeting start --}}
@if($gsetting->googlemeet_enable == '1')
@if( ! $googlemeetmeetings->isEmpty() )
Google Meetings
@foreach($googlemeetmeetings as $meeting)
@endforeach
@endif
@endif
{{-- googlemeeting end --}}
{{-- jitsi start --}}
@if($gsetting->jitsimeet_enable == '1')
@if( ! $jitsimeetings->isEmpty() )
Jitsi Meetings
@foreach($jitsimeetings as $meeting)
@endforeach
@endif
@endif
{{-- jitsi end --}}
@endif
@endauth
{{ __('frontstaticword.Requirements') }}
{{ __('frontstaticword.Description') }}
{!! $course->detail !!}
{!! $course->category_page_desc !!}
{!! $course->footer_desc !!}
@php
$alreadyrated = App\ReviewRating::where('course_id', $course->id)->limit(1)->first();
@endphp
@if($alreadyrated == !NULL)
@if($alreadyrated->featured == 1)
{{ __('frontstaticword.FeaturedReview') }}
@if(isset($alreadyrated))
@foreach($coursereviews as $rating)
@if($rating->review == !null && $rating->featured == 1)
{{ str_limit($rating->user->fname, $limit = 1, $end = '') }}{{ str_limit($rating->user->lname, $limit = 1, $end = '') }}
@if(isset($rating->user)) {{ $rating->user['fname'] }} {{ $rating->user['lname'] }} @endif
{{ date('jS F Y', strtotime($rating['created_at'])) }}
{{ $rating['review'] }}
@auth
{{ __('frontstaticword.helpful') }}?
@php
$help = App\ReviewHelpful::where('user_id', Auth::User()->id)->where('review_id', $rating->id)->first();
@endphp
@if(isset($help['review_like']) == '1')
@else
@endif
@if(isset($help['review_dislike']) == '1')
@else
@endif
{{ __('frontstaticword.Report') }}
{!! $course->footer_desc !!}
@endauth
@endif
@endforeach
@endif
@endif
@endif
{{ __('frontstaticword.RecentCourses') }}
@php
$items = App\Course::orderBy('created_at','desc')->limit(5)->get()
@endphp
@foreach($items as $item)
@if($item->status == 1)
@if($item->preview_image !== NULL && $item->preview_image !== '')
 }})
@else
->toBase64() }})
@endif
{{ __('frontstaticword.LastUpdated') }} {{ date('jS F Y', strtotime($item['updated_at'])) }}
- {{ $item->order->count() }}
@if($item->type==1)
@if($item->discount_price == !NULL)
- {{ currency($item->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
{{ currency($item->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@else
@if($item->price == !NULL)
- {{ currency($item->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@endif
@endif
@else
- {{ __('frontstaticword.Free') }}
@endif
-
@if(Auth::check())
@php
$wishtt = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $item->id)->first();
@endphp
@if ($wishtt == NULL)
@else
@endif
@else
@endif
@endif
@endforeach
{{ __('frontstaticword.AboutInstructor') }}
@php
$fullname = isset($course->user['fname']) . ' ' . isset($course->user['lname']);
$fullname = preg_replace('/\s+/', '', $fullname);
@endphp
@if($course->user->user_img != null || $course->user->user_img !='')
 }})
@else
}})
@endif
{{--
--}}
{{ __('frontstaticword.AboutInstructor') }}
{{--
--}}
{!! $course->user['detail'] !!}
@if(! $reviews->isEmpty())
{{ __('frontstaticword.StudentFeedback') }}