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

{{ $course->title }}

CREATED BY

{{ $settings->site_name }}

CATEGORY

{{ $course->category->name }}

LAST UPDATED

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

About Course

{{ $course->desc }}

Course Lessons

@forelse ($lessons as $lesson)
{{ $lesson->title }}
{{ $lesson->length }} Mins
@if ($lesson->preview == '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