@extends('layouts.app') @section('title', 'Referral Program') @section('page-title', 'Referral Program') @section('content')
{{-- Hero --}}

Referral Program

Invite friends and earn 5% commission on every deposit they make — credited instantly to your wallet.

{{-- Stats row --}}

Total Referrals

{{ $stats['total_referrals'] }}

Total Earned

${{ number_format($stats['total_earned'], 2) }}

₨{{ number_format($stats['total_earned'] * session('usd_pkr_rate',280), 0) }}

This Month

${{ number_format($stats['earned_month'], 2) }}

{{-- Referral link --}}

Your Unique Link

link
{{-- Referral list --}}

Your Referrals

@forelse($referrals as $ref)
{{ strtoupper(substr($ref->name, 0, 1)) }}

{{ $ref->name }}

Joined {{ $ref->created_at->diffForHumans() }}

${{ number_format($ref->referral_commission ?? 0, 2) }} earned

{{ $ref->orders_count ?? 0 }} orders

@empty
group_add

No referrals yet

Share your link above to start earning

@endforelse
@endsection @section('scripts') @endsection