{{ getSiteName() }}{{ getSiteName() }}
  • {{ __('front.nav.home') }}
  • {{ __('front.nav.courses') }}
  • {{ __('front.nav.reels') }}
  • @if(isMultiInstructorsMode())
  • {{ __('front.nav.instructors') }}
  • @endif @auth('web') @php $navSubExpired = auth('web')->user()->siteSubscriptions()->where('status', 'active')->where('expires_at', '<=', now())->exists(); @endphp
  • {{ __('front.nav.my_profile') }} @if($navSubExpired) @endif
  • @endauth
@auth('web') {{ auth('web')->user()->name }}
@csrf
@else {{ __('front.nav.log_in') }} {{ __('front.nav.start_free') }} @endauth
@auth('web') @php $navStudent = auth('web')->user()->student; $navRecentPoints = $navStudent ? $navStudent->pointTransactions()->with('source')->latest()->limit(3)->get() : collect(); $navPointIcons = [ \App\Models\PointTransaction::REASON_LESSON_COMPLETED => '▶', \App\Models\PointTransaction::REASON_EXAM_PASSED => '📝', \App\Models\PointTransaction::REASON_REVIEW_POSTED => '⭐', ]; @endphp
{{ __('front.nav.your_points') }}
{{ number_format(optional($navStudent)->points ?? 0) }}
@forelse($navRecentPoints as $tx)
{{ $navPointIcons[$tx->reason] ?? '⚡' }}
{{ __('front.profile.points_' . $tx->reason) }}{{ $tx->source?->title ?? '' }}
+{{ $tx->points }}
@empty

{{ __('front.profile.no_activity') }}

@endforelse
{{ __('front.exam.view_profile') }}
@endauth {{ app()->getLocale() === 'ar' ? 'EN' : 'AR' }}