@extends('layouts.dashboard') @section('title', __('My Dashboard')) @section('page_title', __('Dashboard')) @section('content')
{{ __('Learner hub') }}

{{ __('Hi :name, ready to learn?', ['name' => explode(' ', auth()->user()->name)[0]]) }} ๐Ÿš€

@if($stats['in_progress']) {{ trans_choice('You have :count course in progress.|You have :count courses in progress.', $stats['in_progress'], ['count' => $stats['in_progress']]) }} {{ __('Pick up where you left off.') }} @else {{ __('Explore new courses and start your learning journey today.') }} @endif

{{ $stats['avg_progress'] }}%
{{ __('Overall progress') }}
{{ $stats['completed'] }}/{{ $stats['enrolled'] }} {{ __('courses completed') }}
@if(!is_null($stats['points']))
{{ number_format($stats['points']) }} {{ __('points') }}
@endif
@include('partials.dashboard.stat-card', ['label' => __('Enrolled'), 'value' => $stats['enrolled'], 'icon' => 'bi-journal-bookmark', 'color' => 'primary', 'url' => route('student.courses')])
@include('partials.dashboard.stat-card', ['label' => __('In Progress'), 'value' => $stats['in_progress'], 'icon' => 'bi-hourglass-split', 'color' => 'warning'])
@include('partials.dashboard.stat-card', ['label' => __('Completed'), 'value' => $stats['completed'], 'icon' => 'bi-check2-circle', 'color' => 'success'])
@include('partials.dashboard.stat-card', ['label' => __('Certificates'), 'value' => $stats['certificates'], 'icon' => 'bi-award', 'color' => 'info', 'url' => route('student.certificates')])
{{ __('Continue Learning') }}
{{ __('My learning') }}
@forelse($continueLearning as $enrollment) @php($course = $enrollment->course) @continue(! $course)
{{ $course->instructor->name ?? '' }}
{{ $course->title }}
{{ (int) $enrollment->progress_percentage }}% {{ __('complete') }} {{ __('Resume') }}
@empty
{{ __("You're not enrolled in any course yet.") }}
@endforelse
{{ __('This Week') }} {{ __('lessons completed') }}
{{ __('Upcoming Live Classes') }}
@forelse($upcomingClasses as $lc)
{{ $lc->start_time->format('d') }}
{{ $lc->start_time->format('M') }}
{{ $lc->title }}
{{ $lc->course->title ?? '' }} ยท {{ $lc->start_time->format('h:i A') }}
@if(\Illuminate\Support\Facades\Route::has('student.liveclasses.join')){{ __('Join') }}@endif
@empty
{{ __('No upcoming live classes.') }}
@endforelse
{{ __('Achievements') }}
@if(module_enabled('gamification')) @if($badges->isNotEmpty())
@foreach($badges as $ub) @endforeach
{{ __('View all achievements') }} @else
{{ __('Complete lessons to earn badges.') }}
@endif @else @forelse($recentCertificates as $c)
{{ $c->course->title ?? '' }}
{{ optional($c->issued_at)->format('M d, Y') }}
@empty
{{ __('Complete a course to earn a certificate.') }}
@endforelse @endif
@if($recommended->isNotEmpty())
{{ __('Recommended for you') }}
{{ __('See all') }}
@foreach($recommended as $course)
@if(!empty($course->recommend_reason))
{{ $course->recommend_reason }}
@endif @include('partials.course-card', ['course' => $course])
@endforeach
@endif
{{ __('All My Courses') }}{{ $enrollments->count() }}
@forelse($enrollments as $enrollment) @continue(! $enrollment->course)
{{ $enrollment->course->title }}
{{ __('by') }} {{ $enrollment->course->instructor->name ?? 'โ€”' }}
{{-- Percentage sits on the same line as the bar, right-aligned in a fixed column so the bars line up down the list. --}}
{{ (int) $enrollment->progress_percentage }}%
{{ status_label($enrollment->status) }} {{ __('Open') }}
@empty
{{ __('No enrollments.') }}
@endforelse
@endsection @push('scripts') @endpush