@extends("front.$version.layout") @section('pagename') - {{__('Course')}} - {{convertUtf8($course_details->title)}} @endsection @section('styles') @endsection @section('breadcrumb-title', $bex->course_details_title) @section('breadcrumb-subtitle', $course_details->title) @section('breadcrumb-link', $course_details->title) @section('content') {{-- course details start --}}
@if ($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif

{{ convertUtf8($course_details->title) }}

@if ($bex->is_course_rating == 1)
@endif

@if (empty($course_details->current_price)) {{ __('Free') }} @else {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $course_details->current_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @if (!empty($course_details->previous_price)) {{ $bse->base_currency_symbol_position == 'left' ? $bse->base_currency_symbol : '' }} {{ $course_details->previous_price }} {{ $bse->base_currency_symbol_position == 'right' ? $bse->base_currency_symbol : '' }} @endif @endif

{{ $course_details->summary }}

{{-- this form using POST method for safety --}} @csrf
@auth @php $pcourse = Auth::user()->courseOrder()->where('course_id', $course_details->id)->where('payment_status', 'completed'); @endphp @if(Auth::check() && $pcourse->count() > 0) {{__('Already Purchased')}}
{{__('Go to this Course')}} @else
@endif @endauth @guest
@endguest
{{ __('Card Number') }}*
{{-- this will show error message if the card number is wrong during typing --}}
{{ __('CVC') }}*
{{-- this will show error message if the cvc number is wrong during typing --}}
{{ __('Month') }}*
{{ __('Year') }}*
{{ __('First Name') }}*
@if ($errors->has('payumoney_first_name'))

{{$errors->first('payumoney_first_name')}}

@endif
{{ __('Last Name') }}*
@if ($errors->has('payumoney_last_name'))

{{$errors->first('payumoney_last_name')}}

@endif
{{ __('Phone Number') }}*
@if ($errors->has('payumoney_phone'))

{{$errors->first('payumoney_phone')}}

@endif
@foreach ($offlineGateways as $ogateway) @endforeach

{{ __('Overview') }}

{!! $course_details->overview !!}

@foreach ($modules as $module)
@php $lessons = App\Lesson::where('module_id', $module->id)->get(); @endphp
@endforeach

{{ $course_details->instructor_name }}

{{ $course_details->instructor_occupation }}

{{ $course_details->instructor_details }}

@if ($bex->is_course_rating == 1)
@php $numOfReview = count($reviews); @endphp @if ($numOfReview == 0)

{{ __('This course has no review yet') }}

@else

{{ $numOfReview == 1 ? '1' . ' ' . __('Review for this course') : $numOfReview . ' ' . __('Reviews for this course') }}

@foreach ($reviews as $review)
@if (strpos($review->reviewByUser->photo, 'facebook') !== false || strpos($review->reviewByUser->photo, 'google')) user image @else user image @endif
@if ($rtl == 1) {{ $review->created_at->format('M d, Y') }} {{ '- ' . $review->reviewByUser->fname . ' ' . $review->reviewByUser->lname }} @else {{ $review->reviewByUser->fname . ' ' . $review->reviewByUser->lname }} {{ '- ' . $review->created_at->format('M d, Y') }} @endif

{{ $review->comment }}

@endforeach
@endif @if (Auth::user())
@csrf
@endif
@endif
{{-- course details end --}} @endsection @section('scripts') @endsection