@extends('theme.master') @section('title', "$course->title") @section('content') @include('admin.message') @section('meta_tags') @php $url = URL::current(); @endphp @endsection

{{ $course['title'] }}

@php $actual_link = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; @endphp

{!! $course->header_desc !!}

{!! $course->descriptiont !!}

{!! $course->objective !!}

{!! $course->exam_pattern_syllabus !!}

{!! $course->exam_eligibilit !!}

{!! $course->key_notes !!}

{{ $course['short_detail'] }}

    @php $fullname = isset($course->user['fname']) . ' ' . isset($course->user['lname']); $fullname = preg_replace('/\s+/', '', $fullname); @endphp @if($course['language_id'] == !NULL) @if(isset($course->language))
  • {{ $course->language['name'] }}
  • @endif @endif
@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) @endif @endif @endforeach
@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 @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() ) @endif {{-- googlemeeting start --}} @if($gsetting->googlemeet_enable == '1') @if( ! $googlemeetmeetings->isEmpty() ) @endif @endif {{-- googlemeeting end --}} {{-- jitsi start --}} @if($gsetting->jitsimeet_enable == '1') @if( ! $jitsimeetings->isEmpty() ) @endif @endif {{-- jitsi end --}} @endif @endauth

{{ __('frontstaticword.Requirements') }}

  • {!! $course->requirement !!}

{{ __('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) @endif @endif @if(! $reviews->isEmpty())