@extends('frontend.frontend-page-master') @php $post_img = null; $blog_image = get_attachment_image_by_id($course->image,"full",false); $post_img = !empty($blog_image) ? $blog_image['img_url'] : ''; @endphp @section('og-meta') @endsection @section('page-meta-data') @endsection @section('site-title') {{$course->lang_front->title ?? __('untitled')}} @endsection @section('page-title') {{$course->lang_front->title ?? __('untitled')}} @endsection @section('content') {!! render_image_markup_by_attachment_id($course->image) !!} {{get_static_option('course_single_'.$user_select_lang_slug.'_overview_tab_title')}} {{get_static_option('course_single_'.$user_select_lang_slug.'_curriculum_tab_title')}} {{get_static_option('course_single_'.$user_select_lang_slug.'_instructor_tab_title')}} {{get_static_option('course_single_'.$user_select_lang_slug.'_reviews_tab_title')}} {!! iFrameFilterInSummernoteAndRender($course->lang_front->description ?? '') !!} @foreach($all_curriculumn_with_lesson as $curriculumn_id => $curriculum) {{$curriculum['curriculum']['title'] ?? ''}} @php $curr_description = $curriculum['curriculum']['description'] ?? ''; @endphp @if(!empty($curr_description) ) {!! $curr_description !!} @endif {{$curriculum['curriculum']['count'] ?? 0}} {{__('Lessons')}} @php $lessons = $curriculum['lessons'] ?? []; @endphp @foreach($lessons as $lesson_id => $lesson) {{$lesson['title'] ?? __('Untitled')}} {{$lesson['duration'] ?? ''}} {{$lesson['duration_type'] ?? ''}} @if(isset($lesson['preview']) && $lesson['preview'] === 'yes') @elseif(isset($lesson['preview']) && $lesson['preview'] === 'no') @endif @endforeach @endforeach {!! render_image_markup_by_attachment_id($course->instructor->image ?? '') !!} {{$course->instructor->designation ?? ''}} @if(!empty(optional($course->instructor)->id)) @endif {{optional($course->instructor)->name}} {!! optional($course->instructor)->lang_front->description ?? '' !!} @foreach($course->instructor->social_icons ?? [] as $icon) @endforeach @if(auth()->guard('web')->check()) {{get_static_option('course_single_'.$user_select_lang_slug.'_leave_feedback_title')}} @csrf {{__('Ratings')}} {{__('Message')}} {{__('Submit')}} @else @include('frontend.partials.ajax-login-form') @endif @if(count($course->reviews) > 0) {{get_static_option('course_single_'.$user_select_lang_slug.'_client_feedback_title')}} @foreach($course->reviews as $data) {{$data->user ? $data->user->username : __("Anonymous")}} @for( $i =1; $i <= $data->ratings; $i++ ) @endfor {{$data->message}} @endforeach @endif {{__("Price")}} @if(!empty($course->price) && $course->price == 0) {{__('Free')}} @else {{amount_with_currency_symbol($course->price)}} {{amount_with_currency_symbol($course->sale_price)}} @endif @if(!empty(optional($course->instructor)->id)) {{get_static_option('course_single_'.$user_select_lang_slug.'_instructor_tab_title')}} {{optional($course->instructor)->name}} @endif {{__("Duration")}} {{$course->duration}} {{$course->duration_type}} {{__("Category")}} {{optional(optional($course->category)->lang_front)->title}} {{get_static_option('course_single_'.$user_select_lang_slug.'_curriculum_tab_title')}} {{count(unserialize($course->curriculum_id,['class' => false]))}} {{__("Lectures")}} {{optional($course->lesson_count)->count()}} {{__("Enrolled")}} {{$course->enrolled_student}} @if($course->enroll_required) @php $URL = $is_purchased ? route('frontend.course.lesson.start',$course->id) : route('frontend.course.enroll',$course->id); $button_url = $course->external_url ?? $URL; @endphp {{$is_purchased ? __('Start Learning') : get_static_option('course_single_'.$user_select_lang_slug.'_enroll_button_text')}} @endif @endsection @section('scripts') @include('frontend.partials.ajax-login-form-js') @endsection
{!! $curr_description !!}
{{get_static_option('course_single_'.$user_select_lang_slug.'_client_feedback_title')}}
@foreach($course->reviews as $data)-
@for( $i =1; $i <= $data->ratings; $i++ )
@endfor
{{$data->message}}
@endforeach
{{$data->user ? $data->user->username : __("Anonymous")}}