@extends('dashboard.layout') @section('content')

Focused progress

{{ auth()->user()->name }}, keep building steady progress across your enrolled courses.

Pick up where you left off, review course progress, and keep your learning routine moving.

Account snapshot

Email
{{ auth()->user()->email }}
Mobile
{{ auth()->user()->phone ?: 'Not added yet' }}
Gender
{{ str_replace('_', ' ', auth()->user()->gender ?: 'Not set') }}

My Courses

Continue learning

A focused list of your active enrollments and current progress.

Browse catalog
@if ($enrollments->isNotEmpty())
@foreach ($enrollments as $enrollment) @php $course = $enrollment->course; $progress = (int) ($enrollment->progress_percent ?? 0); $lessonCount = $course?->modules->sum(fn ($module) => $module->lessons->count()) ?? 0; $courseProgressRows = $progressByCourse->get($course?->id, collect()); $latestProgress = $courseProgressRows->first(); @endphp
@if ($course?->thumbnail) {{ $course->title }} @else
{{ $course?->title }}
@endif
Enrolled {{ optional($enrollment->enrolled_at)->format('M Y') }}

{{ $course?->title }}

{{ $course?->instructor?->name ?: 'Instructor pending' }}

{{ $lessonCount }} lessons
Progress{{ $progress }}%
@if ($latestProgress)
Last watched {{ $latestProgress->lesson?->title }}
Watched time {{ gmdate('H:i:s', (int) $latestProgress->watched_seconds) }}
Watch sessions {{ (int) $latestProgress->watch_count }}
@endif
Activation date {{ optional($enrollment->enrolled_at)->format('d M Y') }}
Expiry date {{ $enrollment->expires_at ? $enrollment->expires_at->format('d M Y') : 'Lifetime' }}
{{ $progress > 0 ? 'Momentum is building. Pick up where you left off.' : 'Ready to begin your first lesson.' }}
Start Learning
@endforeach
@else

No active courses yet

Enroll in a course to unlock your learning queue here.

@endif
@if (($recentLessonProgress ?? collect())->isNotEmpty())

Watch History

Recent video activity

Partial watch time, repeat sessions, and last activity are recorded from the protected player.

Lecture
Course
Watched
Plays
Last
@foreach ($recentLessonProgress as $progressRow)

{{ $progressRow->lesson?->title }}

{{ $progressRow->completed ? 'Completed' : 'In progress' }}

{{ $progressRow->lesson?->module?->course?->title }}
{{ gmdate('H:i:s', (int) $progressRow->watched_seconds) }}
{{ (int) $progressRow->watch_count }}
{{ $progressRow->last_watched_at ? $progressRow->last_watched_at->diffForHumans() : 'Open' }}
@endforeach
@endif @if (($pendingPayments ?? collect())->isNotEmpty())

Payment Review

Pending course requests

These payments are waiting for admin confirmation before the course becomes active.

@foreach ($pendingPayments as $payment)

{{ $payment->course?->title }}

Reference: {{ $payment->transfer_reference }}

Pending
Submitted {{ optional($payment->submitted_at)->format('d M Y, h:i A') }}
@endforeach
@endif @endsection