{{-- Continue learning --}}
@if($lastLesson)
    <section>
        <h2 class="text-xl font-semibold mb-4">Continue Learning</h2>
        <a href="{{ route('student.lessons.show', $lastLesson->id) }}" class="btn-primary">
            Resume "{{ $lastLesson->title }}"
        </a>
    </section>
@endif

{{-- My Courses --}}
<section class="mt-8">
    <h2 class="text-xl font-semibold mb-4">My Courses</h2>
    <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
        @foreach($otherCourses as $course)
            <x-course-card :course="$course" />
        @endforeach
    </div>
</section>

{{-- Offered Courses (modular partial) --}}
@include('student.partials._offered_courses', ['otherCourses' => $otherCourses])