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.

48 lines
1.4 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 table-bordered">
  7. <thead>
  8. <tr>
  9. <th>Team</th>
  10. @foreach($missions as $mission)
  11. <th>
  12. <h3>{{ $mission->id }}</h3>
  13. {{ $mission->hashtag }}
  14. </th>
  15. @endforeach
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @foreach($teams as $team)
  20. <tr>
  21. <td>
  22. <div class="team">
  23. <span class="team-icon" style="background-color: #{{ $team->color }};"></span>
  24. <span class="team-name">{{ $team->name }}</span>
  25. </div>
  26. <div class="players">
  27. @foreach($team->players as $player)
  28. <a href="https://twitter.com/{{ $player->twitter }}">{{ '@'.$player->twitter }}</a>
  29. @endforeach
  30. </div>
  31. </td>
  32. @foreach($missions as $mission)
  33. <td>
  34. <div>{{ $mission->complete($team) ? 'Complete' : '' }}</div>
  35. <div>{{ $mission->progress($team)[0].'/'.$mission->progress($team)[1] }}</div>
  36. </td>
  37. @endforeach
  38. </tr>
  39. @endforeach
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. </div>
  45. @endsection