{{ Form::open(array('url' => url('brackets/matchups/' . $info['matchup']->id . '/assignments/' . $info['record']->id . '/verify'), 'style' => 'font-size: 10pt; position: relative; padding-top: 0.25em;', 'id' => 'verify_assignment_form', 'data-allow-meals' => $info['record']->is_allow_meals, 'data-allow-miles' => $info['record']->is_allow_miles, 'data-activity-slug' => $info['bracket']->activity, 'data-mileage-number' => $info['record']->getAdjustedMileageNumber(), 'data-allow-verify' => (strtotime($info['event']->start_at) <= time()) ? 1 : 0)) }} {{ Form::hidden('matchup_id', $info['matchup']->id) }} {{ Form::hidden('bracket_id', $info['bracket']->id) }} {{ Form::hidden('record_id', $info['record']->id) }} {{ Form::hidden('redirect', '/account?sub-tab=cmsh_reimbursements#commissioner') }}
{{ $info['bracket']->division }} {{ Helpers::getActivityName($info['bracket']->activity) }} - {{ $info['round_type']->name }} Round ({{ $info['round_group'] }})
Assigned to {{ $info['officials_association']->name }}

Away Team: {{ $info['contest']->away_team_name }}
Home Team: {{ $info['contest']->home_team_name }}
Date/Time: {{ Helpers::formatDateTime('%BRACKET_MATCHUP%', strtotime($info['event']->start_at), $info['event']->time_zone) }}

Fee: {{ $info['officials_fee']->name }} @if ($info['record']->is_half_fee)  1/2 Game Fee  @endif
Position:  {{ $info['officials_fee']->position }}
@if (!$info['record']->is_half_fee) Amount:  ${{ number_format($info['officials_fee']->amount, 2) }} @else Amount:   ${{ number_format($info['officials_fee']->amount, 2) }}    ${{ number_format($info['officials_fee']->amount / 2, 3) }}  @endif
Apply:  {{ str_replace(',', ', ', $info['officials_fee']->divisions) }} - {{ $info['officials_fee']->sport }} - Rounds: {{ str_replace(',', ', ', $info['officials_fee']->rounds) }}
Year:   {{ $info['officials_fee']->school_year }}-{{ substr($info['officials_fee']->school_year + 1, 2, 2) }}


Number of Officials: {{ $info['record']->number }}
Number of {{ $info['officials_fee']->position }} spots that
have been assigned to this association
Game Fee: ${{ number_format($info['record']->game_fee, 2) }}
Assign Fee: ${{ number_format($info['record']->assign_fee, 2) }}
Other Fee: ${{ number_format($info['record']->other_fee, 2) }}
TOTAL:

Meal Claims
@if ($info['record']->is_allow_meals) Meal claims have been enabled. Type in the number of meals to be reimbursed. Enter in whole numbers. Amounts will be calculated automatically. Number cannot exceed the number of officials per meal category: breakfast, lunch, dinner. @else Meal claims have been locked for this assignment. Meal allowances for this reimbursements are managed by OSAA staff. These whole numbers represent the number of meals that will be reimbursed: breakfast, lunch, or dinner. @endif
{{ Form::label('breakfast', 'Breakfast', array('style' => 'font-weight: bold; float: none;')) }} @if ($info['record']->is_allow_meals) {{ Form::text('breakfast', $info['record']->breakfast, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2')) }} @else {{ Form::text('breakfast', $info['record']->breakfast, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2', 'readonly' => 'readonly')) }} @endif
{{ Form::label('lunch', 'Lunch', array('style' => 'font-weight: bold; float: none;')) }} @if ($info['record']->is_allow_meals) {{ Form::text('lunch', $info['record']->lunch, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2')) }} @else {{ Form::text('lunch', $info['record']->lunch, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2', 'readonly' => 'readonly')) }} @endif
{{ Form::label('dinner', 'Dinner', array('style' => 'font-weight: bold; float: none;')) }} @if ($info['record']->is_allow_meals) {{ Form::text('dinner', $info['record']->dinner, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2')) }} @else {{ Form::text('dinner', $info['record']->dinner, array('data-format' => 'integer', 'style' => 'width: 25px;', 'maxlength' => '2', 'readonly' => 'readonly')) }} @endif
Meals Fee: ${{ number_format($info['record']->meals_fee, 2) }}


{{ Form::label('miles', 'Round-Trip Miles', array('style' => 'font-weight: bold;')) }} @if ($info['record']->is_allow_miles) {{ Form::text('miles', $info['record']->miles, array('style' => 'width: 50px;', 'maxlength' => '4', 'data-autofocus' => 'true')) }} @else {{ Form::text('miles', $info['record']->miles, array('style' => 'width: 50px;', 'maxlength' => '4', 'readonly' => 'readonly')) }} @endif
Mileage Fee: ${{ number_format($info['record']->mileage_fee, 2) }}
@if ($info['record']->getAdjustedMileageNumber() != $info['record']->number) @if ($info['record']->getAdjustedMileageNumber() == 0) (Included in other record for this contest) @else (Including total crew of {{ $info['record']->getAdjustedMileageNumber() }} people) @endif @endif

@if ($info['record']->is_allow_miles) Enter in the total round trip miles. Round to the nearest mile. @if (Helpers::strEqual($info['bracket']->activity, 'FBL')) The OSAA will reimburse mileage at the rate of 75¢ per mile round trip up to 60 miles and 50¢ per mile round trip for 61 or more miles. A flat rate of $25 per crew is the minimum mileage reimbursement. @else The OSAA will reimburse mileage at the rate of 50¢ per mile round trip with a minimum flat rate of $5 per official. @endif @else Mileage entry has been disabled from commissioner input. Any mileage reimbursements for this contest is managed by OSAA staff. @endif

{{ Form::label('officials', 'Official(s)', array('style' => 'font-weight: bold;')) }} {{ Form::text('officials', $info['record']->officials, array('style' => 'width: 250px;')) }} Name(s) of the assigned official(s)

OSAA Notes: {{ (!Helpers::strIsEmpty($info['record']->staff_notes)) ? $info['record']->staff_notes : '- -' }}

{{ Form::textarea('cmsh_notes', $info['record']->notes, array('style' => 'height: 3em; width: 90%;')) }}

Submitted: {{ (!is_null($info['record']->cmsh_verified_at)) ? date('D n/j/Y g:ia', strtotime($info['record']->cmsh_verified_at)) : 'NOT SUBMITTED' }}
Updated: {{ (!is_null($info['record']->updated_at)) ? date('D n/j/Y g:ia', strtotime($info['record']->updated_at)) : '- -' }}
Created: {{ (!is_null($info['record']->created_at)) ? date('D n/j/Y g:ia', strtotime($info['record']->created_at)) : '- -' }}
{{ Form::close() }}