@extends('layouts.app') @section('title', 'Invite Friends to Challenge') @section('content')

Invite Friends to Challenge

Select friends to invite to your {{ $challenge->game->name }} challenge

{{ $challenge->game->name }} Challenge

Best of {{ $challenge->best_of }}

₦{{ number_format($challenge->wager_amount) }}
per player
@if($challenge->rules_text)

Rules:

{{ $challenge->rules_text }}

@endif
@if($friends->count() > 0)
@csrf

Select Friends to Invite

@foreach($friends as $friend)
{{ substr($friend->username, 0, 2) }}
Wins: {{ $friend->createdChallenges()->where('result', 'creator_win')->count() + $friend->acceptedChallenges()->where('result', 'accepter_win')->count() }}
Balance: ₦{{ number_format($friend->wallet_balance) }}
@endforeach

Optional Message

Cancel
@else
👥

No Friends to Invite

You need friends to send challenge invites. Start building your friend network!

@endif
@endsection