{{__('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')}}: {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount(\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