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.

64 lines
2.2 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. <a href="{{ route('mission', $mission) }}">{{ $mission->hashtag }}</a>
  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"><a href="{{ route('team', $team) }}">{{ $team->name }}</a></span>
  26. </div>
  27. <div class="players">
  28. @foreach($team->players as $player)
  29. <div class="profile float-left">
  30. <a href="https://twitter.com/{{ $player->twitter }}" title="{{ $player->twitter }}"><img src="{{ $player->photo }}" style="border-color: {{ '#'.$team->color }}"></a>
  31. </div>
  32. @endforeach
  33. </div>
  34. </td>
  35. @foreach($missions as $mission)
  36. <td class="score">
  37. <div class="team-wrap">
  38. <div class="team">
  39. @if($mission->progress($team)[0] >= 1)
  40. <span class="team-icon outlined {{ $mission->complete($team) ? '' : 'empty' }}"
  41. style="background-color: #{{ $team->color }}; border-color: #{{ $team->color }};">
  42. @if(!Auth::guest())
  43. {{ $mission->score($team) }}
  44. @endif
  45. </span>
  46. @endif
  47. </div>
  48. </div>
  49. </td>
  50. @endforeach
  51. <td class="total score">
  52. <b>{{ $team->total_score() }}</b>
  53. </td>
  54. </tr>
  55. @endforeach
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. </div>
  61. @endsection