{{ 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">
                    <label for="name">Nome:</label>
                    <input type="text" name="name" id="name" class="form-control title"
                           value="{{ old('name', isset($season) ? $season->name : '') }}"
                           required>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label for="default">Stagione corrente:</label><br>
                    <input type="checkbox" name="default" id="default" value="on" {{ old('default', isset($season) ? $season->default : false) ? 'checked' : '' }}>
                </div>
            </div>
        </div>
    </div>

    <div class="box-footer">
        @if(Auth::user()->only_read == false)
            <button type="submit" class="btn btn-success">{{ $submit_text }}</button>
        @endif
        <a href="{{ route('seasons.index') }}" class="btn btn-info">Annulla</a>
    </div>
</div>

@section('extra_js')

    <script>

    </script>

@stop
