@extends('layouts.dash') @section('title', $title) @section('content')
@if (in_array(auth()->user()->id, $whoPurchased)) @endif

{{ $course->course_title }}

CREATED BY

{{ $settings->site_name }}

CATEGORY

{{ $course->category }}

LAST UPDATED

{{ \Carbon\Carbon::parse($course->updated_at)->toDayDateTimeString() }}

About Course

{{ $course->description }}

Course Lessons

@forelse ($lessons as $lesson)
{{ $lesson->title }}
{{ $lesson->length }}
@if ($lesson->locked == 'true') Preview @else @endif
@if ($loop->iteration == 5)
{{-- --}}
{{ $loop->remaining }} More Lesson{{ $loop->remaining > 1 ? 's' : '' }}
@endif @break($loop->iteration == 5) {{-- End modal --}} @empty

No Data Available

@endforelse
course image
@if (in_array(auth()->user()->id, $whoPurchased)) Watch Lesson @else

{{ !$course->amount ? 'Free' : $settings->currency . number_format($course->amount) }}

@endif
@endsection