@extends('layouts.app') @section('content')
Team | @foreach($missions as $mission)
{{ $mission->id }}{{ $mission->hashtag }} |
@endforeach
Score |
---|---|---|
{{ $team->name }}
@foreach($team->players as $player)
{{ '@'.$player->twitter }}
@endforeach
|
@foreach($missions as $mission)
@if(Auth::guest())
{{ $mission->complete($team) ? 'Complete' : '' }}
@else
{{ $mission->score($team) }}
{{ $mission->complete($team) ? 'Complete' : '' }}
{{ $mission->progress($team)[0].'/'.$mission->progress($team)[1] }}
@endif
|
@endforeach
{{ $team->total_score() }} |