{{ csrf_field() }}
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"></h3>
    </div>

    <div class="box-body">
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    {!! Form::label('name', 'Nome:') !!}
                    {!! Form::text('name', null, array('class' => 'form-control title')) !!}
                </div>                
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    {!! Form::label('penality', 'Punti di penalità:') !!}
                    {!! Form::text('penality', null, array('class' => 'form-control')) !!}
                </div>                
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    {!! Form::label('excluded', 'Esclusa:') !!}<br>
                    {!! Form::checkbox('excluded', 'on', null) !!}
                </div>                
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    {!! Form::label('day', 'Giornata ritiro:') !!}
                    {!! Form::text('day', null, array('class' => 'form-control')) !!}
                </div>                
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    {!! Form::label('&nbsp;', '') !!}
                    <select class="form-control" name="type">
                        <option value="-"></option>
                        <option value="andata" {{$team->type == 'andata' ? 'selected' : ''}}>Andata</option>
                        <option value="ritorno" {{$team->type == 'ritorno' ? 'selected' : ''}}>Ritorno</option>
                    </select>
                </div>                
            </div>
        </div>
    </div>

    <div class="box-footer">
        @if(Auth::user()->only_read == false)
            {!! Form::submit($submit_text, ['class'=>'btn btn-success']) !!}
        @endif
        {!! link_to_route('teams.index', 'Annulla', ['type' => Session::get('type') , "category_id" => Session::get('category_id') , "group_id" => Session::get('group_id')], array('class' => 'btn btn-info')) !!}
    </div>
</div>

@section('extra_js')

    <script>
        
    </script>
    
@stop