@extends('layouts/contentNavbarLayout') @section('title', $challenge->title . ' - Personal Challenge') @section('vendor-style') @endsection @section('page-style') @endsection @section('content')
{{ $challenge->description }}
| Rank | Participant | Completions | Total Steps | Progress |
|---|---|---|---|---|
| #{{ $index + 1 }} |
@if($user->avatar)
{{ substr($user->name, 0, 1) }}
@endif
{{ $user->name }}
{{ $user->email }}
|
{{ $user->pivot->num_of_completions }} | {{ number_format($user->pivot->steps) }} |
@if($challenge->is_steps_goal)
@php
$progress = min(100, ($user->pivot->steps / $challenge->steps_goal) * 100);
@endphp
|