{!! Form::errors($errors) !!}
@if (isset($model))
{!! Form::model($model, ['route' => ['admin.matches.update', $model->id], 'files' => true, 'method' => 'PUT']) !!}
@else
{!! Form::open(['url' => 'admin/matches', 'files' => true]) !!}
@endif
{!! Form::smartSelect('state', trans('app.state'), $modelClass::$states) !!}
{!! Form::smartSelectRelation('leftTeam', trans('matches::left_team'), $modelClass) !!}
{!! Form::smartSelectRelation('rightTeam', trans('matches::right_team'), $modelClass) !!}
{!! Form::smartSelectRelation('game', trans('app.object_game'), $modelClass) !!}
{!! Form::smartSelectRelation('tournament', trans('app.object_tournament'), $modelClass) !!}
{!! Form::smartUrl() !!}
{!! Form::smartUrl('broadcast', trans('matches::broadcast')) !!}
{!! Form::smartText('left_lineup', trans('matches::left_lineup')) !!}
{!! Form::smartText('right_lineup', trans('matches::right_lineup')) !!}
{!! Form::smartTextarea('text', trans('app.description'), true) !!}
{!! Form::smartDateTime('played_at', trans('matches::played_at')) !!}
{!! Form::smartCheckbox('featured', trans('app.featured')) !!}
@if (isset($model))
{!! Form::smartGroupOpen(null, trans('app.object_match_scores')) !!}
@foreach ($model->match_scores as $matchScore)
@include('matches::admin_map', compact('matchScore'))
@endforeach
+
{!! Form::smartGroupClose() !!}
@endif
{!! Form::actions() !!}
{!! Form::close() !!}