@extends('layouts.business') @section('title', 'Referral Program') @section('content')

Referral Program

Refer businesses and earn rewards

Total Referrals
{{ $stats['total'] ?? 0 }}
Successful
{{ $stats['successful'] ?? 0 }}
Rewards Earned
AED {{ number_format($stats['earned'] ?? 0) }}
Pending Rewards
AED {{ number_format($stats['pending'] ?? 0) }}

Your Referral Code

Share this code and earn AED 500 for each successful referral

How It Works
1
Share Your Code

Send your unique referral code to business owners

2
They Sign Up

Your referral creates an account using your code

3
Subscription Purchase

They complete verification and purchase a subscription

4
Earn Rewards

Receive AED 500 credit to your account

Your Referrals
@forelse($referrals ?? [] as $referral) @empty @endforelse
Business Name Email Status Signup Date Reward Status Amount
{{ $referral->referred->businesses->first()->business_name ?? 'N/A' }}
{{ $referral->referred->email }} @if($referral->referred->status === 'active') Active @else Pending @endif {{ $referral->created_at->format('M d, Y') }} @if($referral->reward_status === 'claimed') Claimed @elseif($referral->reward_status === 'earned') Earned @elseif($referral->reward_status === 'pending') Pending @else Expired @endif AED {{ number_format($referral->reward_amount) }}

No referrals yet. Start sharing your code!

Reward History
@forelse($rewardHistory ?? [] as $reward) @empty @endforelse
Date Description Amount Status
{{ $reward->created_at->format('M d, Y') }} Referral reward for {{ $reward->referred_business_name }} +AED {{ number_format($reward->amount) }} Credited
No reward history yet
@endsection @push('scripts') @endpush