@extends('layouts/contentNavbarLayout') @section('title', $challenge->title . ' - Participants') @section('vendor-style') @endsection @section('page-style') @endsection @section('content')
{{ $challenge->description }}
Complete list of challenge participants and their progress
| Rank | Participant | Completions | Total Steps | @if($challenge->is_steps_goal)Goal Progress | @endifJoined Date | |
|---|---|---|---|---|---|---|
| @if($index < 3) #{{ $index + 1 }} @if($index === 0) @elseif($index === 1) @elseif($index === 2) @endif @else #{{ $index + 1 }} @endif |
@if($user->avatar)
{{ 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
|
@if($challenge->is_steps_goal)
@php
$progress = min(100, ($user->pivot->steps / $challenge->steps_goal) * 100);
@endphp
|
@endif
{{ \Carbon\Carbon::parse($user->pivot->created_at)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($user->pivot->created_at)->locale('en')->diffForHumans() }}
|
This challenge doesn't have any participants yet. Users can join through the mobile app.
Enroll All Users