2017-12-06 14:33:52 -08:00
|
|
|
<div class="form-group {{ $errors->has('image') ? 'has-error' : '' }}">
|
|
|
|
<label class="col-md-3 control-label" for="image">{{ trans('general.image_upload') }}</label>
|
2018-07-19 10:39:12 -07:00
|
|
|
<div class="col-md-9">
|
2017-12-06 14:33:52 -08:00
|
|
|
<label class="btn btn-default">
|
|
|
|
{{ trans('button.select_file') }}
|
2018-02-16 21:17:41 -08:00
|
|
|
<input type="file" name="image" id="uploadFile" data-maxsize="{{ \App\Helpers\Helper::file_upload_max_size() }}" accept="image/gif,image/jpeg,image/png,image/svg" style="display:none">
|
2017-12-06 14:33:52 -08:00
|
|
|
</label>
|
2018-01-09 20:12:07 -08:00
|
|
|
<span class='label label-default' id="upload-file-info"></span>
|
2018-02-16 21:17:41 -08:00
|
|
|
|
|
|
|
<p class="help-block" id="upload-file-status">{{ trans('general.image_filetypes_help', ['size' => \App\Helpers\Helper::file_upload_max_size_readable()]) }}</p>
|
2017-12-06 14:33:52 -08:00
|
|
|
{!! $errors->first('image', '<span class="alert-msg">:message</span>') !!}
|
|
|
|
</div>
|
2018-10-09 17:31:52 -07:00
|
|
|
<div class="col-md-4 col-md-offset-3">
|
2018-02-17 00:51:22 -08:00
|
|
|
<img id="imagePreview" style="max-width: 200px;">
|
|
|
|
</div>
|
2017-12-06 14:33:52 -08:00
|
|
|
</div>
|
2018-01-09 20:12:07 -08:00
|
|
|
|