@extends('user-front.layout') @section('tab-title') {{ $keywords['course_details'] ?? 'Course Details' }} @endsection @section('meta-description', !empty($userSeo) ? $userSeo->meta_description_course_details : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->meta_keyword_course_details : '') @section('page-name') {{ $keywords['course_details'] ?? 'Course Details' }} @endsection @section('br-name') {{ $keywords['course_details'] ?? 'Course Details' }} @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 . ' ' . $keywords['ratings'] ?? __('ratings') . ')' }}

@endif
  • {{ $enrolmentCount }} {{ $keywords['Students_Enrolled'] ?? __('Students Enrolled') }}
  • {{ $keywords['by'] ?? 'By' }} {{ $details->instructorName }}
{!! replaceBaseUrl($details->description) !!}

{{ $keywords['frequently_asked_questions'] ?? __('Frequently Asked Questions') }}

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

{{ $faq->answer }}

@endforeach
@endif
@php $modules = DB::table('user_course_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('user_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('user_course_instructor_social_links') ->where('instructor_id', $details->instructorId) ->orderBy('serial_number', 'asc') ->get(); @endphp @if (count($socials) > 0) @endif
@guest('customer')

{{ $keywords['please_login_to_give_your_feedback'] ?? __('Please login to give your feedback') . '.' }}

{{ $keywords['Login'] ?? __('Login') }} @endguest @auth('customer')

{{ $keywords['ratings'] ?? __('Ratings') . '*' }}

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

{{ $keywords['this_course_is_not_reviewed_yet'] ?? __('This course is not reviewed yet') . '.' }}

@else
@foreach ($reviews as $review)
@php $user = $review->customerInfo()->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 (is_array($packagePermissions) && in_array('Advertisement', $packagePermissions)) @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif @endif
image
@if ($details->pricing_type == 'premium')

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

@else

{{ $keywords['Free'] ?? __('Free') }}

@endif
{{ $keywords['discounted_price'] ?? __('Discounted Price') }}: {{ $position == 'left' ? $symbol : '' }}{{ $position == 'right' ? $symbol : '' }}
@if (session()->has('profile_warning')) @endif @error('attachment') @enderror @php $courseType = ''; if ($details->pricing_type == 'free') { $courseType = 'free'; } @endphp @auth('customer') @if ( ($details->pricing_type == 'premium' && (!is_null($enrolmentInfo) && $enrolmentInfo->payment_status == 'completed')) || ($details->pricing_type == 'free' && !is_null($enrolmentInfo))) @endif @endauth @if ( !Auth::guard('customer')->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')
@error('identity_number')

{{ $message }}

@enderror @error('zip_code')

{{ $message }}

@enderror
@foreach ($onlineGateways as $onlineGateway) @if ($onlineGateway->keyword == 'stripe')
@endif @if ($onlineGateway->keyword == 'authorize.net')

@error('anetCardNumber')

{{ $message }}

@enderror

@error('anetExpMonth')

{{ $message }}

@enderror
@error('anetExpYear')

{{ $message }}

@enderror
@error('anetCardCode')

{{ $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) !!}

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

    @endif
    @endforeach {{-- @if (is_array($packagePermissions) && in_array('Coupon', $packagePermissions)) --}}
    {{-- @endif --}} @endif
    @endif
    {{ $keywords['this_course_includes'] ?? __('This Course Includes') }}
    @php $features = explode(PHP_EOL, $details->features); @endphp
      @foreach ($features as $feature)
    • {{ $feature }}
    • @endforeach
    @if (count($relatedCourses) > 0) @endif
    @endsection @section('scripts') {{-- START: Authorize.net Scripts --}} @php $user = getUser(); $anet = App\Models\User\UserPaymentGeteway::query() ->where('user_id', $user->id) ->where('keyword', 'authorize.net') ->first(); $anetSrc = 'assets/front/js/anet-test.js'; $anetAcceptSrc = 'https://jstest.authorize.net/v1/Accept.js'; if (!is_null($anet)) { $anetInfo = $anet->convertAutoData(); $anetTest = $anetInfo['sandbox_check'] ?? ''; if ($anetTest != 1) { $anetSrc = 'assets/front/js/anet.js'; $anetAcceptSrc = 'https://js.authorize.net/v1/Accept.js'; } } @endphp @if (!empty($stripe_key)) @endif @endsection