Use this utility to edit a CTS record. Click the "Save" button to commit changes to the database, or click "Cancel" to revert back to the original settings. Note, CTS records are updated when scores are entered or updated. Your changes may be over-ridden if a team updates the score.
{{ Form::open(array('url' => url('/contest-teams-scores/' . $info['cts']->id), 'method' => 'POST', 'style' => 'font-size: 10pt;')) }} {{ Form::hidden('redirect', url('/teams/' . $info['ap']->id) . '#sub-tabs-ranking') }} {{ Form::hidden('cts_id', $info['cts']->id) }}
CTS ID
{{ $info['cts']->id }}
Contest ID
{{ $info['cts']->contest }}
Activity
{{ Helpers::getActivityName($info['contest']->activity) }}
Division
{{ $info['contest']->division }}
Cross Division?
{{ ($info['contest']->is_cross_division) ? 'Yes' : 'No' }} @if ($info['contest']->is_cross_division and property_exists($info['opponent'], 'ap')) @if (Helpers::strEqual($info['ap']->division, $info['contest']->division)) vs. {{ $info['opponent']->ap->division }} @else vs. {{ $info['ap']->division }} @endif @endif
Level
{{ $info['contest']->level }}
Cross Level?
{{ ($info['contest']->is_cross_level) ? 'Yes' : 'No' }}
Team
{{ ucfirst(strtolower($info['cts']->designation)) }}: {{ $info['contest']->{strtolower($info['cts']->designation) . '_team_name'} }}


Contest Date/Time
{{ date('D. n/j/y g:i a', strtotime($info['event']->start_at)) }}
Contest Created At
{{ date('n/j/y g:i a', strtotime($info['contest']->created_at)) }}
Contest Updated At
{{ date('n/j/y g:i a', strtotime($info['contest']->updated_at)) }}
Event Created At
{{ date('n/j/y g:i a', strtotime($info['event']->created_at)) }}
Event Updated At
{{ date('n/j/y g:i a', strtotime($info['event']->updated_at)) }}


CTS Created At
{{ date('n/j/y g:i a', strtotime($info['cts']->created_at)) }}
CTS Updated At
{{ date('n/j/y g:i a', strtotime($info['cts']->updated_at)) }}
Final Score
@if (intval($info['contest']->home_team_score) > intval($info['contest']->away_team_score)) {{ $info['contest']->home_team_score }} - {{ $info['contest']->away_team_score }}, {{ $info['contest']->home_team_name }} @elseif (intval($info['contest']->home_team_score) < intval($info['contest']->away_team_score)) {{ $info['contest']->away_team_score }} - {{ $info['contest']->home_team_score }}, {{ $info['contest']->away_team_name }} @else {{ $info['contest']->home_team_score }} - {{ $info['contest']->away_team_score }}, Tie @endif
Counts As
@if ($info['cts']->is_win) Win @elseif ($info['cts']->is_tie) Tie @else Loss @endif @if ($info['cts']->is_forfeit) Forfeit @endif
Forfeit?
{{ ($info['cts']->is_forfeit) ? 'Yes' : 'No' }}
Points/Weight
{{ round($info['cts']->points, 1) }} / {{ round($info['cts']->weight, 1) }}
CTS Records
{{ (count($info['other_ctss']) + 1) }}


@if (count($info['other_ctss']) > 1)
There are {{ count($info['other_ctss']) }} other CTS records for this contest.

@endif Contest Impacts for {{ $info['ap']->name }}
{{ Form::label('is_limitable', 'Contest Limits?', array('class' => '')) }} {{ Form::checkbox('is_limitable', 1, $info['cts']->is_limitable, array('style' => 'vertical-align: middle;')) }}
{{ Form::label('is_recordable', 'Overall Record?', array('class' => '')) }} {{ Form::checkbox('is_recordable', 1, $info['cts']->is_recordable, array('style' => 'vertical-align: middle;')) }}
{{ Form::label('is_league_recordable', 'League Record?', array('class' => '')) }} {{ Form::checkbox('is_league_recordable', 1, $info['cts']->is_league_recordable, array('style' => 'vertical-align: middle;')) }}
{{ Form::label('is_rankable', 'Rankable?', array('class' => '')) }} {{ Form::checkbox('is_rankable', 1, $info['cts']->is_rankable, array('style' => 'vertical-align: middle;')) }}
{{ Form::label('is_colley_rankable', 'Colley Rankable?', array('class' => '')) }} {{ Form::checkbox('is_colley_rankable', 1, $info['cts']->is_colley_rankable, array('style' => 'vertical-align: middle;')) }}


@foreach ($info['other_ctss'] as $cts) {{ Form::label('duplicate_impacts', 'Duplicate impacts for opposing team - ' . $cts->team_name . '?', array('class' => '')) }} {{ Form::checkbox('duplicate_impacts', 1, 1, array('style' => 'vertical-align: middle;')) }}

@endforeach Notes
{{ Form::textarea('notes', $info['cts']->notes, array('style' => 'height: 3em; width: 100%;'))}}

Delete CTS Record(s)
{{ Form::label('delete_record', 'Delete this CTS record?', array('class' => '')) }} {{ Form::checkbox('delete_record', 1, 0, array('style' => 'vertical-align: middle;')) }}
@foreach ($info['other_ctss'] as $cts)
{{ Form::label('delete_others', 'Also delete the related CTS record for ' . $cts->team_name . '?', array('class' => '')) }} {{ Form::checkbox('delete_others', 1, 0, array('style' => 'vertical-align: middle;')) }}
@endforeach

{{ Form::close() }}