<div class="modal-dialog" role="document">
    <div class="modal-content">
        {!! Form::open(['route' => ['meddoc.documents.add-version', $document->id], 'class' => 'meddoc-form', 'files' => true]) !!}
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title">@lang('meddocuments::lang.add_version') — {{ $document->title }}</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                {!! Form::label('file', __('meddocuments::lang.file') . ':*') !!}
                {!! Form::file('file', ['class' => 'form-control', 'required']) !!}
                <p class="help-block">@lang('meddocuments::lang.file_help')</p>
            </div>
            <div class="form-group">
                {!! Form::label('notes', __('meddocuments::lang.notes') . ':') !!}
                {!! Form::textarea('notes', null, ['class' => 'form-control', 'rows' => 2]) !!}
            </div>
        </div>
        <div class="modal-footer">
            <button type="submit" class="btn btn-primary">@lang('meddocuments::lang.upload')</button>
            <button type="button" class="btn btn-default" data-dismiss="modal">@lang('messages.close')</button>
        </div>
        {!! Form::close() !!}
    </div>
</div>
