@php @endphp
See All Course

Learning often happens in classrooms but it doesn’t have to. Use {{ $settings->site_name }} to facilitate learning experiences no matter the context.

@if ($courses) @forelse ($courses as $item)
course image
{{ $item->course->course_title }}
{{ count($item->lessons) }} {{ count($item->lessons) > 1 ? 'Lessons' : 'Lesson' }}
{{ count($item->users) }}

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

@if (in_array(auth()->user()->id, $item->usersWhoPurchased)) Watch Lesson @else Get @endif
@empty

No Data Available

@endforelse
{{-- {{ $courses->links() }} --}}
More Lessons
@forelse ($categories as $cat) @if (count($cat->lessons) > 0)
Category

{{ $cat->category->category }}

@foreach ($cat->lessons as $less) @if ($less->category) @endif @endforeach @endif @empty

No Data Available

@endforelse
@else

No Data Available

@endif