@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->course_details_page_title ?? 'Course Details' }} @endif @endsection @section('metaKeywords') {{ $details->meta_keywords }} @endsection @section('metaDescription') {{ $details->meta_description }} @endsection @section('style') @endsection @section('content') @php $position = $currencyInfo->base_currency_symbol_position; $symbol = $currencyInfo->base_currency_symbol; @endphp
{{ $details->categoryName }}

{{ $details->title }}

@if (!is_null($details->average_rating))

{{ $details->average_rating . ' (' . $ratingCount . ' ' . __('ratings') . ')' }}

@endif
  • {{ __('By') . ' ' . $details->instructorName }}
{!! replaceBaseUrl($details->description, 'summernote') !!}

{{ __('Frequently Asked Questions') }}

@php $faqs = DB::table('course_faqs')->where('course_id', $details->id)->where('language_id', $details->language_id) ->orderBy('serial_number', 'asc') ->get(); @endphp @if (count($faqs) == 0)
{{ __('No FAQ Found') . '!' }}
@else
@foreach ($faqs as $faq)

{{ $faq->answer }}

@endforeach
@endif
@php $modules = DB::table('modules')->where('course_information_id', $details->courseInfoId) ->where('status', 'published') ->orderBy('serial_number', 'asc') ->get(); @endphp @foreach ($modules as $module)
@php $modulePeriod = $module->duration; $array = explode(':', $modulePeriod); $moduleHour = $array[0]; $moduleDuration = \Carbon\Carbon::parse($modulePeriod); @endphp
@php $lessons = DB::table('lessons')->where('module_id', $module->id) ->where('status', 'published') ->orderBy('serial_number', 'asc') ->get(); @endphp
@endforeach
Instructor
{{ $details->instructorName }}
{{ $details->instructorJob }}
{!! replaceBaseUrl($details->instructorDetails, 'summernote') !!}
@php $socials = DB::table('social_links')->where('instructor_id', $details->instructorId) ->orderBy('serial_number', 'asc') ->get(); @endphp @if (count($socials) > 0) @endif
@guest('web') {{ __('Login') }} @endguest @auth('web')

{{ __('Ratings') }}

@csrf
@endauth @if (count($reviews) == 0)

{{ __('This course is not reviewed yet') . '.' }}

@else
@foreach ($reviews as $review)
@php $user = $review->userInfo()->first(); @endphp
@if (is_null($user->image)) User @else User @endif
{{ $user->first_name . ' ' . $user->last_name }}
{{ date_format($review->created_at, 'F d, Y') }}
    @for ($i = 0; $i < $review->rating; $i++)
  • @endfor

{{ $review->comment }}

@endforeach
@endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
image
@if(!session()->has('coupon_id'))
@if ($details->pricing_type == 'premium')

{{ $position == 'left' ? $symbol : '' }}{{ $details->current_price }}{{ $position == 'right' ? $symbol : '' }} @if (!is_null($details->previous_price)) {{ $position == 'left' ? $symbol : '' }}{{ $details->previous_price }}{{ $position == 'right' ? $symbol : '' }} @endif

@else

{{ __('Free') }}

@endif
@endif
@if (session()->has('profile_warning')) @endif @error('attachment') @enderror @php $courseType = ''; if ($details->pricing_type == 'free') { $courseType = 'free'; } @endphp @auth('web') @if (($details->pricing_type == 'premium' && (!is_null($enrolmentInfo) && $enrolmentInfo->payment_status == 'completed')) || ($details->pricing_type == 'free' && !is_null($enrolmentInfo))) @endif @endauth @if (!Auth::guard('web')->check() || (($details->pricing_type == 'premium' && (is_null($enrolmentInfo) || $enrolmentInfo->payment_status != 'completed')) || ($details->pricing_type == 'free' && is_null($enrolmentInfo))))
@csrf @if ($details->pricing_type == 'premium') @foreach ($onlineGateways as $onlineGateway) @if ($onlineGateway->keyword == 'stripe')

@error('card_number')

{{ $message }}

@enderror

@error('cvc_number')

{{ $message }}

@enderror
@error('expiry_month')

{{ $message }}

@enderror
@error('expiry_year')

{{ $message }}

@enderror
@endif @endforeach @foreach ($offlineGateways as $offlineGateway)
@if (!is_null($offlineGateway->short_description))

{{ $offlineGateway->short_description }}

@endif @if (!is_null($offlineGateway->instructions))

{!! replaceBaseUrl($offlineGateway->instructions, 'summernote') !!}

@endif @if ($offlineGateway->has_attachment == 1)

@endif
@endforeach @if(session('coupon_code') && strlen(session('coupon_code')) > 0) @else
@endif @endif
@endif
{{ __('This Course Includes') }}
@php $features = explode(PHP_EOL, $details->features); @endphp
    @foreach ($features as $feature)
  • {{ $feature }}
  • @endforeach
{{-- @if (count($relatedCourses) > 0) @endif --}}
{!! showAd(2) !!}
@endsection @section('script') @endsection