@extends('layouts.app') @section('title','My Nabola Card') @push('styles') @endpush @section('content') @php $isAmbassador = $user->ambassador?->isActive(); $ambassador = $user->ambassador; $publicUrl = route('profile.public', $user->referral_code); $qrUrl = 'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data='.urlencode($publicUrl).'&bgcolor=ffffff&color=071a0d&margin=4'; $refLink = url('/register').'?ref='.$user->referral_code; if ($isAmbassador) { $roleLabel = '🌟 Nabola Ambassador'; $badgeText = 'I Am a Nabola Ambassador 🌟'; $badgeBg = 'rgba(251,191,36,.12)'; $badgeBorder= 'rgba(251,191,36,.3)'; $badgeColor = '#fbbf24'; $shareText = 'I am a Nabola Ambassador ♻️ — helping build a cleaner Nigeria! Join with my code '.$user->referral_code.': '.$refLink; $tweetText = 'I am a @i_usenabola Ambassador 🌟♻️ — turning waste into wealth across Nigeria! Join with code '.$user->referral_code.' #Nabola #Ambassador #Recycling #Nigeria'; } else { $roleLabel = $user->isPremium() ? '⭐ Premium Member' : ($user->isKycApproved() ? '✓ Verified Recycler' : ($user->business?->isApproved() ? '🏢 Business Member' : '♻️ Nabola Recycler')); $badgeText = 'I Am Nabola ♻️'; $badgeBg = 'rgba(76,175,80,.1)'; $badgeBorder= 'rgba(76,175,80,.2)'; $badgeColor = '#4caf50'; $shareText = 'I use Nabola ♻️ — Nigeria\'s waste-to-cash platform! Join with my code '.$user->referral_code.' and start earning: '.$refLink; $tweetText = 'I use @i_usenabola ♻️ — turning waste into cash in Nigeria! Join with code '.$user->referral_code.' #Nabola #Recycling #Nigeria'; } @endphp
{{-- Top --}}
Turn Waste Into Cash · Nigeria
{{ $badgeText }}
{{-- Middle --}}
@if($user->avatar) {{ $user->name }} @else
{{ strtoupper(substr($user->name,0,2)) }}
@endif
{{ $user->name }}
{{ $roleLabel }}
{{ $user->city ? $user->city.', ' : '' }}{{ $user->state ?? 'Nigeria' }} @if($isAmbassador && $ambassador->region)  ·  {{ $ambassador->region }} @endif @if($user->isKycApproved())  ·  ✓ KYC@endif
@if($isAmbassador)
{{ $ambassador->referrals_count }}
Referrals
{{ number_format($ambassador->coins_earned) }}
NC Earned
{{ $ambassador->events_hosted }}
Events
{{ $ambassador->appointed_at?->format('M Y') ?? now()->format('M Y') }}
Since
@else
{{ number_format($user->getCoins()) }}
NC Earned
{{ $user->wasteLogs()->where('status','confirmed')->count() }}
Pickups
{{ number_format($user->total_kg_recycled,1) }}
kg Recycled
{{ round($user->getCo2Saved(),1) }}
kg CO₂
@endif
QR Code
{{-- Bottom --}}
{{ $isAmbassador ? 'Ambassador Code' : 'Referral Code' }}
{{ $user->referral_code }}
nabola.bybimport.com/u/{{ $user->referral_code }}
@if($isAmbassador)
Official Ambassador
{{ $ambassador->title }}
@else
Member Since
{{ $user->created_at->format('M Y') }}
@endif
Scan QR to view profile
{{-- Actions --}}
WhatsApp Telegram Twitter
Your Public Profile Link
@if($isAmbassador)
Ambassador Sharing Tips
• Share your Ambassador Card to show your official Nabola status
• Anyone who scans the QR code sees your public ambassador profile
• Use your code to recruit users in your region — earn per referral
• Post on social media with #NabolaAmbassador to grow your reach
@else
Sharing Tips
• Save as image and post on Instagram, Facebook, or WhatsApp status
• Anyone who scans the QR code sees your public Nabola profile
• Share your referral link to earn 50 NC per signup
• Post on Twitter/X with #Nabola #Recycling to reach more people
@endif
@push('scripts') @endpush @endsection