{{-- user/profile/index.blade.php | Obrempong | Jcode --}} @extends('layouts.app') @section('title','My Profile') @section('content')
{{-- Profile Card --}}
{{ auth()->user()->name }}
{{ auth()->user()->email }}
⭐ {{ auth()->user()->level }} Rank #{{ auth()->user()->leaderboard_rank }}
{{-- Stats --}}
@foreach(['Points'=>number_format(auth()->user()->points),'Total Earned'=>number_format(auth()->user()->total_earned_points),'Withdrawn'=>'GH₵'.number_format(auth()->user()->total_withdrawn,2)] as $lbl=>$val)
{{ $val }}
{{ $lbl }}
@endforeach
{{-- Referral --}}
šŸ”— Your Referral Link
{{ url('/register?ref='.auth()->user()->referral_code) }}
Earn {{ \App\Models\Setting::get('referral_bonus_points',200) }} pts for each friend who joins!
Total referrals: {{ $totalReferrals }}
{{-- Edit Profile Form --}}
Edit Profile
@if($errors->any())
{{ $errors->first() }}
@endif @if(session('success'))
{{ session('success') }}
@endif
@csrf
Change Password
{{-- Logout --}}
@csrf
@endsection @push('scripts') @endpush