You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB

  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-12">
  6. <table class="table scoreboard">
  7. <thead>
  8. <tr>
  9. <th>Team</th>
  10. @foreach($missions as $mission)
  11. <th class="score">
  12. <h3>{{ $mission->id }}</h3>
  13. {{ $mission->hashtag }}
  14. </th>
  15. @endforeach
  16. <th class="score">Score</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. @foreach($teams as $team)
  21. <tr>
  22. <td>
  23. <div class="team">
  24. <span class="team-icon" style="background-color: #{{ $team->color }};"></span>
  25. <span class="team-name">{{ $team->name }}</span>
  26. </div>
  27. <div class="players">
  28. @foreach($team->players as $player)
  29. <a href="https://twitter.com/{{ $player->twitter }}">{{ '@'.$player->twitter }}</a>
  30. @endforeach
  31. </div>
  32. </td>
  33. @foreach($missions as $mission)
  34. <td class="score">
  35. @if(!Auth::guest())
  36. <div>{{ $mission->score($team) }}pts</div>
  37. @endif
  38. <div class="team-wrap">
  39. <div class="team">
  40. @if($mission->progress($team)[0] >= 1)
  41. <span class="team-icon outlined {{ $mission->complete($team) ? '' : 'empty' }}"
  42. style="background-color: #{{ $team->color }}; border-color: #{{ $team->color }};"></span>
  43. @endif
  44. </div>
  45. </div>
  46. </td>
  47. @endforeach
  48. <td class="total score">
  49. <b>{{ $team->total_score() }}</b>
  50. </td>
  51. </tr>
  52. @endforeach
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. </div>
  58. @endsection