@extends('theme.master') @section('title', "$course->title") @section('content') @include('admin.message')
    @if(Auth::check()) @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if ($wish == NULL)
  • @csrf
  • @else
  • @csrf
  • @endif @else
  • {{ __('frontstaticword.Wishlist') }}
  • @endif
@if($course->type == 1)
    @php $currency = App\Currency::first(); @endphp @if($course->discount_price == !NULL)
  • {{ $course['discount_price'] }}
  • {{ $course['price'] }}
  • @else
  • {{ $course['price'] }}
  • @endif
@if(Auth::check()) @if(Auth::User()->role == "admin") @else @if(isset($course->duration))
{{ __('frontstaticword.EnrollDuration') }}: {{ $course->duration }} Months
@endif @php $order = App\Order::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if(!empty($order) && $order->status == 1) @elseif(isset($course_id) && in_array($course->id, $course_id)) @else @php $cart = App\Cart::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if(!empty($cart))
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif @endif @endif @else @endif @else
  • Free
@if(Auth::check()) @if(Auth::User()->role == "admin") @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if($enroll == NULL) @else @endif @endif @else @endif @endif
    @if($courseinclude->isNotEmpty())
  • Course Includes
  • @foreach($course->include as $in) @if($in->status ==1)
  • {{ str_limit($in->detail, $limit = 50, $end = '...') }}
  • @endif @endforeach @endif


@if($whatlearns->isNotEmpty())

{{ __('frontstaticword.Whatlearn') }}

@foreach($course['whatlearns'] as $wl) @if($wl->status ==1)
  • {{ str_limit($wl['detail'], $limit = 120, $end = '...') }}
@endif @endforeach
@endif

{{ __('frontstaticword.Description') }}

{!! $course->detail !!}

@auth @php $alreadyrated = App\ReviewRating::where('course_id', $course->id)->limit(1)->first(); @endphp @if($alreadyrated == !NULL) @if($alreadyrated->featured == 1) @endif @endif @endauth @if($coursechapters->isNotEmpty())

{{ __('frontstaticword.CourseContent') }}

@foreach($coursechapters as $chapter) @if($chapter->status == 1 and $chapter->count() > 0 )
@foreach($courseclass as $class) @if($class->coursechapter_id == $chapter->id) @endif @endforeach
@if($class->type =='video' ) @endif @if($class->type =='audio' ) @endif @if($class->type =='image' ) @endif @if($class->type =='pdf' ) @endif @if($class->type =='zip' ) @endif
{{ $class['title'] }} @if($class->date_time != NULL)
Live at: {{ $class->date_time }}
@endif @if($class->detail != NULL) @endif
{!! $class->detail !!}
@if($class->preview_url != NULL || $class->preview_video != NULL ) preview @endif @if($class->type =='video') {{ $class['duration'] }}min @else {{ $class['size'] }}mb @endif
@endif @endforeach
@endif @auth @php $user_enrolled = App\Order::where('course_id', $course->id)->where('user_id', Auth::user()->id) ->first(); @endphp @if( $user_enrolled != NULL || Auth::user()->role == 'admin' ) @if( ! $bigblue->isEmpty() )
{{ __('Live Classes') }}
@foreach($bigblue as $bbl) @if($bbl->is_ended != 1 && $bbl->course_id != '')
@endif @endforeach
@endif @if( ! $meetings->isEmpty() )
{{ __('frontstaticword.ZoomMeetings') }}
@foreach($meetings as $meeting) @endforeach
@endif @endif @endauth

{{ __('frontstaticword.RecentCourses') }}

@php $items = App\Course::orderBy('created_at','desc')->limit(5)->get() @endphp @foreach($items as $item) @if($item->status == 1)
@if($item->preview_image !== NULL && $item->preview_image !== '') blog @else blog @endif
{{ __('frontstaticword.LastUpdated') }} {{ date('jS F Y', strtotime($item['updated_at'])) }}
@if($item->type==1) @php $currency1 = App\Currency::first(); @endphp @if($item->discount_price == !NULL)
  • {{ $item->discount_price }}
  • {{ $item['price'] }}
@else
  • {{ $item['price'] }}
@endif @else
  • {{ __('frontstaticword.Free') }}
@endif
  • @if (Auth::check()) @php $wishtt = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $item->id)->first(); @endphp @if ($wishtt == NULL)
    {{ csrf_field() }}
    @else
    {{ csrf_field() }}
    @endif @else
    @endif
@endif @endforeach

{{ __('frontstaticword.AboutInstructor') }}

@if($course->user->user_img != null || $course->user->user_img !='') instructor @else instructor @endif
{{ __('frontstaticword.AboutInstructor') }}

{!! $course->user['detail'] !!}


@auth
@php $orders = App\Order::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first(); @endphp @if(!empty($orders))

{{ __('frontstaticword.Reviews') }}

{{ csrf_field() }}
1 {{ __('frontstaticword.Star') }} 2 {{ __('frontstaticword.Star') }} 3 {{ __('frontstaticword.Star') }} 4 {{ __('frontstaticword.Star') }} 5 {{ __('frontstaticword.Star') }}
{{ __('frontstaticword.Learn') }}
{{ __('frontstaticword.Price') }}
{{ __('frontstaticword.Value') }}

@endif @php $alreadyrated = App\ReviewRating::where('course_id', $course->id)->first(); @endphp @if($alreadyrated == !NULL)

Warning: Undefined variable $alreadyrated in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 870

Warning: Undefined variable $alreadyrated in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 872

Warning: Attempt to read property "learn" on null in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 872

Warning: Undefined variable $alreadyrated in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 873

Warning: Attempt to read property "price" on null in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 873

Warning: Undefined variable $alreadyrated in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 874

Warning: Attempt to read property "value" on null in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 874
@if(isset($alreadyrated)) @foreach($course->review as $rating) @if($rating->review == !null && $rating->status == 1 && $rating->approved == 1)
{{ $rating->user->fname[0] }}{{ $rating->user->lname[0] }}
{{ date('d-m-Y', strtotime($rating['created_at'])) }}
{{ $rating->user['fname'] }}

{{ $rating['review'] }}

{{ __('frontstaticword.helpful') }}? @php $help = App\ReviewHelpful::where('user_id', Auth::User()->id)->where('review_id', $rating->id)->first(); @endphp @if($help == !NULL)
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif {{-- report --}} {{ __('frontstaticword.Report') }}

@endif @endforeach @endif
@endif
@endauth @if(!$relatedcourse->isEmpty())

{{ __('frontstaticword.RelatedCourses') }}

@foreach($relatedcourse as $rel) @if($rel->status ==1)
@if($rel->courses['preview_image'] !== NULL && $rel->courses['preview_image'] !== '') student @else student @endif
{{-- Add to wishlisht --}} @if (Auth::check()) @php $wishtt = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $rel->course_id)->first(); @endphp @if ($wishtt == NULL)
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif @else
@endif {{-- Add to wishlisht end--}}

by {{ $rel->user['fname'] }}


  • Fatal error: Uncaught Error: Class "App\ReviewRating" not found in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php:1067 Stack trace: #0 {main} thrown in /home/rajthemystery/public_html/resources/lang/views/front/course_detail.blade.php on line 1067