@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) !!}
  • {{__("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