Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
.trash /
resources /
views /
referrals /
Delete
Unzip
Name
Size
Permission
Date
Action
index.blade.php
15.75
KB
-rw-r--r--
2025-09-15 01:32
Save
Rename
@extends('layouts.app') @section('title', 'Invite Friends & Earn') @section('content') <div class="container mx-auto px-4 py-6 max-w-4xl"> <!-- Header Section --> <div class="mb-6"> <div class="bg-gradient-to-r from-green-600 via-emerald-600 to-teal-700 rounded-2xl p-6 text-white relative overflow-hidden"> <div class="absolute inset-0 bg-black bg-opacity-10"></div> <div class="absolute -top-4 -right-4 w-20 h-20 bg-white bg-opacity-10 rounded-full"></div> <div class="absolute -bottom-4 -left-4 w-24 h-24 bg-white bg-opacity-5 rounded-full"></div> <div class="relative z-10"> <h1 class="text-2xl font-bold mb-2">👥 Invite Friends & Earn</h1> <p class="text-green-100 mb-4">Earn 20% commission on your friends' earnings forever!</p> <div class="grid grid-cols-2 gap-4"> <div class="bg-white bg-opacity-20 rounded-xl p-4 backdrop-blur-sm"> <div class="text-lg font-bold">{{ auth()->user()->referrals()->count() }}</div> <div class="text-sm text-green-100">Friends Referred</div> </div> <div class="bg-white bg-opacity-20 rounded-xl p-4 backdrop-blur-sm"> <div class="text-lg font-bold">${{ number_format(auth()->user()->getTotalReferralEarnings(), 2) }}</div> <div class="text-sm text-green-100">Commission Earned</div> </div> </div> </div> </div> </div> <!-- Referral Link Section --> <div class="bg-white rounded-2xl p-6 shadow-sm border border-gray-100 mb-6" x-data="referralSystem()"> <h2 class="text-xl font-semibold text-gray-900 mb-4 flex items-center"> <svg class="w-6 h-6 mr-2 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path> </svg> Your Referral Link </h2> <div class="bg-gray-50 rounded-xl p-4 mb-4"> <label class="block text-sm font-medium text-gray-700 mb-2">Share this link with your friends:</label> <div class="flex"> <input type="text" x-model="referralLink" readonly class="flex-1 bg-white border border-gray-300 rounded-l-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent"> <button @click="copyLink()" class="bg-green-600 hover:bg-green-700 text-white px-6 py-3 rounded-r-lg transition-colors duration-200 flex items-center"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path> </svg> </button> </div> </div> <!-- Quick Share Buttons --> <div class="grid grid-cols-2 gap-4"> <button @click="shareWhatsApp()" class="bg-[#25D366] hover:bg-[#1db954] text-white rounded-xl py-3 px-4 font-medium transition-all duration-200 flex items-center justify-center space-x-2"> <svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor"> <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.885 3.488"/> </svg> <span>WhatsApp</span> </button> <button @click="shareFacebook()" class="bg-[#1877F2] hover:bg-[#166fe5] text-white rounded-xl py-3 px-4 font-medium transition-all duration-200 flex items-center justify-center space-x-2"> <svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor"> <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/> </svg> <span>Facebook</span> </button> </div> </div> <!-- How It Works --> <div class="bg-white rounded-2xl p-6 shadow-sm border border-gray-100 mb-6"> <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center"> <svg class="w-6 h-6 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"></path> </svg> How Referral System Works </h2> <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> <!-- Step 1 --> <div class="text-center"> <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4"> <span class="text-2xl font-bold text-blue-600">1</span> </div> <h3 class="font-semibold text-gray-900 mb-2">Share Your Link</h3> <p class="text-sm text-gray-600">Share your unique referral link with friends via WhatsApp, Facebook, or any social media platform.</p> </div> <!-- Step 2 --> <div class="text-center"> <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4"> <span class="text-2xl font-bold text-green-600">2</span> </div> <h3 class="font-semibold text-gray-900 mb-2">Friends Sign Up</h3> <p class="text-sm text-gray-600">When your friends click your link and sign up, they become your referrals permanently.</p> </div> <!-- Step 3 --> <div class="text-center"> <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4"> <span class="text-2xl font-bold text-purple-600">3</span> </div> <h3 class="font-semibold text-gray-900 mb-2">Earn Commission</h3> <p class="text-sm text-gray-600">You earn 20% commission on every dollar your friends earn from watching ads!</p> </div> </div> </div> <!-- Commission Calculator --> <div class="bg-white rounded-2xl p-6 shadow-sm border border-gray-100 mb-6" x-data="commissionCalculator()"> <h2 class="text-xl font-semibold text-gray-900 mb-4 flex items-center"> <svg class="w-6 h-6 mr-2 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path> </svg> Commission Calculator </h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div> <label class="block text-sm font-medium text-gray-700 mb-2">Number of Friends</label> <input type="range" x-model="friendsCount" min="1" max="100" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider"> <div class="flex justify-between text-xs text-gray-500 mt-1"> <span>1</span> <span>100</span> </div> <p class="text-center mt-2 font-medium" x-text="friendsCount + ' friends'"></p> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-2">Daily Earnings per Friend</label> <input type="range" x-model="dailyEarnings" min="0.25" max="2.00" step="0.25" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider"> <div class="flex justify-between text-xs text-gray-500 mt-1"> <span>$0.25</span> <span>$2.00</span> </div> <p class="text-center mt-2 font-medium" x-text="formatCurrency(dailyEarnings) + ' per day'"></p> </div> </div> <div class="bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-xl p-6 mt-6 text-center"> <h3 class="text-lg font-semibold text-gray-900 mb-2">Your Potential Earnings</h3> <div class="grid grid-cols-2 gap-4"> <div> <div class="text-2xl font-bold text-green-600" x-text="formatCurrency(dailyCommission)">$0.00</div> <div class="text-sm text-gray-600">Per Day</div> </div> <div> <div class="text-2xl font-bold text-green-600" x-text="formatCurrency(monthlyCommission)">$0.00</div> <div class="text-sm text-gray-600">Per Month</div> </div> </div> <p class="text-xs text-gray-500 mt-2">Based on 20% commission rate</p> </div> </div> <!-- Referral Stats --> <div class="bg-white rounded-2xl p-6 shadow-sm border border-gray-100"> <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center"> <svg class="w-6 h-6 mr-2 text-indigo-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path> </svg> Your Referral Performance </h2> @if(auth()->user()->referrals()->count() > 0) <div class="space-y-4"> @foreach(auth()->user()->referrals()->latest()->take(5)->get() as $referral) <div class="flex items-center justify-between p-4 bg-gray-50 rounded-xl"> <div class="flex items-center space-x-3"> <img class="w-10 h-10 rounded-full bg-gray-300" src="https://ui-avatars.com/api/?name={{ $referral->referred->name }}&background=6366f1&color=fff" alt="{{ $referral->referred->name }}"> <div> <p class="font-medium text-gray-900">{{ $referral->referred->name }}</p> <p class="text-sm text-gray-500">Joined {{ $referral->created_at->diffForHumans() }}</p> </div> </div> <div class="text-right"> <p class="font-semibold text-green-600">${{ number_format($referral->commission_amount, 2) }}</p> <p class="text-xs text-gray-500">Commission</p> </div> </div> @endforeach </div> @if(auth()->user()->referrals()->count() > 5) <div class="text-center mt-4"> <a href="{{ route('referrals.all') }}" class="text-indigo-600 hover:text-indigo-700 text-sm font-medium"> View All {{ auth()->user()->referrals()->count() }} Referrals </a> </div> @endif @else <div class="text-center py-8"> <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4"> <svg class="w-8 h-8 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197m13.5-9a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"></path> </svg> </div> <h3 class="text-lg font-medium text-gray-900 mb-2">No Referrals Yet</h3> <p class="text-gray-600 mb-4">Start sharing your referral link to invite friends and earn commission!</p> </div> @endif </div> </div> @endsection @section('scripts') <script> function referralSystem() { return { referralLink: '{{ url("/signup?ref=" . auth()->user()->referral_code) }}', copyLink() { navigator.clipboard.writeText(this.referralLink).then(() => { window.showNotification('📋 Referral link copied to clipboard!', 'success'); }).catch(() => { // Fallback for older browsers const textarea = document.createElement('textarea'); textarea.value = this.referralLink; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); window.showNotification('📋 Referral link copied!', 'success'); }); }, shareWhatsApp() { const text = `🎉 Join FastEarnAds and start earning money by watching ads! Use my referral link: ${this.referralLink}`; const url = `https://wa.me/?text=${encodeURIComponent(text)}`; window.open(url, '_blank'); }, shareFacebook() { const url = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.referralLink)}`; window.open(url, '_blank'); } } } function commissionCalculator() { return { friendsCount: 10, dailyEarnings: 1.00, get dailyCommission() { return this.friendsCount * this.dailyEarnings * 0.20; }, get monthlyCommission() { return this.dailyCommission * 30; } } } </script> @endsection