{!! Html::decode(Form::label('document_type', 'Document Type *')) !!} {!! Form::select('document_type', $documentTypes, $file->type ?? null, [ 'class' => 'form-control' . ($errors->has('document_type') ? ' is-invalid' : ''), 'placeholder' => 'Select Document Type', ]) !!} @if ($errors->has('document_type'))
{{ $errors->first('document_type') }}
@endif
{!! Html::decode(Form::label('file', 'File *')) !!} {!! Form::file('file', ['class' => 'form-control', 'accept' => '.doc,.docx,.pdf,.csv,.xlsx,.xls']) !!}
@isset($file)

Document : {{ $file->title }}

@endisset @if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
Back {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}