@extends('layouts.app') @section('title','Send Coins') @push('styles') @endpush @section('content') @php $user = auth()->user(); @endphp {{-- Hero --}}
💜 Send Nabola Coins
{{ number_format($user->getCoins()) }} NC
≈ ₦{{ number_format($user->getCoins() * 10) }}  ·  Available balance
Your Referral Code
{{ $user->referral_code }}
Share so others can send you coins
{{-- Limits bar --}}
Per transfer limit: {{ number_format($transferLimit) }} NC
Daily remaining: {{ number_format($remainingToday) }} NC
@if(!$user->isKycApproved())
Submit KYC to increase to 50,000 NC/day
@endif
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
{{-- SEND FORM --}}
Send Coins
@csrf {{-- Recipient --}}
Enter email or Nabola referral code (e.g. ABC12345)
{{-- Recent recipients --}} @if($recipientNames->count())
Recent Recipients
@foreach($recipientNames as $rn) @endforeach
@endif {{-- Recipient preview --}}
?
Nabola user found ✓
{{-- Amount --}}
@foreach([50, 100, 250, 500] as $p)
{{ $p }} NC
@endforeach
Available: {{ number_format($user->getCoins()) }} NC
{{-- Message --}}
{{-- PIN --}}
@for($i = 0; $i < 4; $i++) @endfor
@error('pin')
{{ $message }}
@enderror
Transfers are instant and cannot be reversed. Double-check recipient details.
{{-- TRANSFER HISTORY --}}
Transfer History
@forelse($history as $t) @php $isSent = $t->type === 'transfer_sent'; @endphp
{{ $t->description }}
{{ $t->created_at->diffForHumans() }}  ·  {{ $t->created_at->format('d M Y') }}
{{ $isSent ? '−' : '+' }}{{ number_format($t->coins) }} NC
@empty
💸
No transfers yet
Send coins to a friend to get started
@endforelse
{{-- Stats summary --}} @if($history->count()) @php $totalSent = $history->where('type','transfer_sent')->sum('coins'); $totalReceived = $history->where('type','transfer_received')->sum('coins'); @endphp
{{ number_format($totalSent) }} NC
Total Sent
{{ number_format($totalReceived) }} NC
Total Received
@endif
@push('scripts') @endpush @endsection