{{__('Copy your referral link and invite other people to get a fee from their earnings.')}}
{{__('Your referral list')}}
@if(count($referrals)) @foreach($referrals as $referral)
@if($referral->usedBy) {{$referral->usedBy->username}} @else Avatar @endif
{{__('Since')}}: {{ \Carbon\Carbon::parse($referral->created_at)->format('Y-m-d') }}
{{__('Earned')}}:{{config('app.site.currency_symbol')}}{{\App\Providers\UsersServiceProvider::getTotalAmountEarnedFromRewardsByUsers(\Illuminate\Support\Facades\Auth::user()->id, $referral->used_by)}}
@endforeach
{{ $referrals->onEachSide(1)->links() }}
@else

{{__('There are no referrals to show.')}}

@endif