@extends('layouts/contentNavbarLayout') @section('title', $challenge->title . ' - Participants') @section('vendor-style') @endsection @section('page-style') @endsection @section('content')

{{ $challenge->title }} - Participants

{{ $challenge->description }}

{{ number_format($totalParticipants) }}
Total Participants
{{ number_format($totalSteps) }}
Total Steps
{{ number_format($totalCompletions) }}
Total Completions
{{ number_format($averageSteps) }}
Average Steps
All Participants

Complete list of challenge participants and their progress

@if($challenge->users->count() > 0)
@if($challenge->is_steps_goal) @endif @foreach($challenge->users as $index => $user) @if($challenge->is_steps_goal) @endif @endforeach
Rank Participant Email Completions Total StepsGoal ProgressJoined Date
@if($index < 3) #{{ $index + 1 }} @if($index === 0) @elseif($index === 1) @elseif($index === 2) @endif @else #{{ $index + 1 }} @endif
@if($user->avatar) {{ $user->name }} @else
{{ substr($user->name, 0, 1) }}
@endif
{{ $user->name }}
@if($user->company)
{{ $user->company->name }}
@endif
{{ $user->email }} {{ $user->pivot->num_of_completions }}
{{ number_format($user->pivot->steps) }}
@if($challenge->frequency === 'daily')
Avg: {{ $user->pivot->num_of_completions > 0 ? number_format($user->pivot->steps / $user->pivot->num_of_completions) : 0 }}/day
@endif
@php $progress = min(100, ($user->pivot->steps / $challenge->steps_goal) * 100); @endphp
{{ number_format($progress, 1) }}%
{{ \Carbon\Carbon::parse($user->pivot->created_at)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($user->pivot->created_at)->locale('en')->diffForHumans() }}
@else
No Participants Yet

This challenge doesn't have any participants yet. Users can join through the mobile app.

Enroll All Users
@endif
@endsection @section('vendor-js') @endsection