2019-03-01 15:25:42 -08:00
|
|
|
<div class="form-group {{ $errors->has($logoVariable) ? 'has-error' : '' }}">
|
|
|
|
<label class="col-md-3" for="{{ $logoVariable }}">
|
2020-09-15 19:52:34 -07:00
|
|
|
{{ Form::label($logoVariable, $logoLabel) }}</label>
|
|
|
|
|
|
|
|
@if ($setting->$logoVariable!='')
|
|
|
|
|
|
|
|
<div class="col-md-9">
|
|
|
|
{{ Form::checkbox($logoClearVariable, '1', Request::old($logoClearVariable),array('class' => 'minimal')) }} Remove current {{ str_replace('_', ' ', $logoVariable) }} image
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2019-03-01 15:25:42 -08:00
|
|
|
|
|
|
|
<label class="btn btn-default">
|
|
|
|
{{ trans('button.select_file') }}
|
|
|
|
<input type="file" name="{{ $logoVariable }}" class="js-uploadFile" id="{{ $logoId }}"
|
|
|
|
data-maxsize="{{ $maxSize ?? \App\Helpers\Helper::file_upload_max_size() }}"
|
|
|
|
accept="{{ $allowedTypes ?? 'image/gif,image/jpeg,image/png,image/svg'}}" style="display:none; max-width: 90%">
|
|
|
|
</label>
|
|
|
|
<span class='label label-default' id="{{ $logoId }}-info"></span>
|
|
|
|
|
|
|
|
<p class="help-block" id="{{ $logoId }}-status">
|
|
|
|
{{ $helpBlock }}
|
|
|
|
</p>
|
2020-09-12 10:04:57 -07:00
|
|
|
|
|
|
|
@if (config('app.lock_passwords')===true)
|
2020-09-15 11:40:36 -07:00
|
|
|
<p class="text-warning"><i class="fa fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
2020-09-12 10:04:57 -07:00
|
|
|
@endif
|
2019-03-01 15:25:42 -08:00
|
|
|
{!! $errors->first($logoVariable, '<span class="alert-msg">:message</span>') !!}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2020-09-15 11:57:40 -07:00
|
|
|
<img id="{{ $logoId }}-imagePreview" style="max-width: 500px; max-height: 50px;">
|
2019-03-01 15:25:42 -08:00
|
|
|
</div>
|
|
|
|
|
2020-09-15 19:52:34 -07:00
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
</div>
|