2023-03-07 18:54:09 -08:00
|
|
|
<!-- {{ $logoVariable }}logo image upload -->
|
|
|
|
|
2023-03-07 17:02:52 -08:00
|
|
|
<div class="form-group">
|
2020-11-25 00:45:46 -08:00
|
|
|
<div class="col-md-3">
|
2023-03-07 18:54:09 -08:00
|
|
|
<label {!! $errors->has($logoVariable) ? 'class="alert-msg"' : '' !!} for="{{ $logoVariable }}">
|
|
|
|
{{ ucwords(str_replace('_', ' ', $logoVariable)) }}
|
|
|
|
</label>
|
2020-11-25 00:45:46 -08:00
|
|
|
</div>
|
2023-03-07 17:02:52 -08:00
|
|
|
<div class="col-md-9">
|
2024-02-19 08:11:17 -08:00
|
|
|
<label class="btn btn-default{{ (config('app.lock_passwords')) ? ' disabled' : '' }}">
|
2019-03-01 15:25:42 -08:00
|
|
|
{{ trans('button.select_file') }}
|
2024-02-19 08:11:17 -08:00
|
|
|
<input type="file" name="{{ $logoVariable }}" class="js-uploadFile" id="{{ $logoId }}" accept="{{ (isset($allowedTypes) ? $allowedTypes : "image/gif,image/jpeg,image/webp,image/png,image/svg,image/svg+xml") }}" data-maxsize="{{ $maxSize ?? Helper::file_upload_max_size() }}"
|
|
|
|
style="display:none; max-width: 90%"{{ (config('app.lock_passwords')) ? ' disabled' : '' }}>
|
2019-03-01 15:25:42 -08:00
|
|
|
</label>
|
2023-03-07 17:02:52 -08:00
|
|
|
|
2019-03-01 15:25:42 -08:00
|
|
|
<span class='label label-default' id="{{ $logoId }}-info"></span>
|
|
|
|
|
2023-03-07 17:02:52 -08:00
|
|
|
{!! $errors->first($logoVariable, '<span class="alert-msg">:message</span>') !!}
|
|
|
|
|
|
|
|
|
|
|
|
<p class="help-block" style="!important" id="{{ $logoId }}-status">
|
2019-03-01 15:25:42 -08:00
|
|
|
{{ $helpBlock }}
|
|
|
|
</p>
|
2020-09-12 10:04:57 -07:00
|
|
|
|
|
|
|
@if (config('app.lock_passwords')===true)
|
2021-09-26 01:11:08 -07:00
|
|
|
<p class="text-warning"><i class="fas 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
|
|
|
</div>
|
2023-03-07 17:02:52 -08:00
|
|
|
|
2019-03-01 15:25:42 -08:00
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2023-03-07 17:02:52 -08:00
|
|
|
|
|
|
|
@if (($setting->$logoVariable!='') && (Storage::disk('public')->exists(e($snipeSettings->$logoVariable))))
|
2023-03-07 18:54:09 -08:00
|
|
|
<div class="pull-left" style="padding-right: 20px;">
|
|
|
|
<a href="{{ Storage::disk('public')->url(e($snipeSettings->$logoVariable)) }}"{!! ($logoVariable!='favicon') ? ' data-toggle="lightbox"' : '' !!}>
|
|
|
|
<img id="{{ $logoId }}-imagePreview" style="height: 80px; padding-bottom: 5px;" alt="" src="{{ Storage::disk('public')->url(e($snipeSettings->$logoVariable)) }}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div id="{{ $logoId }}-previewContainer" style="display: none;">
|
|
|
|
<img id="{{ $logoId }}-imagePreview" style="height: 80px;">
|
|
|
|
</div>
|
2023-03-07 17:02:52 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 18:54:09 -08:00
|
|
|
</div>
|
|
|
|
@if (($setting->$logoVariable!='') && (Storage::disk('public')->exists(e($snipeSettings->$logoVariable))))
|
2023-03-07 17:02:52 -08:00
|
|
|
|
2023-03-07 18:54:09 -08:00
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2023-04-03 22:38:56 -07:00
|
|
|
<label id="{{ $logoId }}-deleteCheckbox" for="{{ $logoClearVariable }}" style="font-weight: normal" class="form-control">
|
2024-06-27 07:05:47 -07:00
|
|
|
{{ Form::checkbox($logoClearVariable, '1', old($logoClearVariable)) }}
|
2023-03-07 18:54:09 -08:00
|
|
|
Remove current {{ ucwords(str_replace('_', ' ', $logoVariable)) }} image
|
|
|
|
</label>
|
2019-03-01 15:25:42 -08:00
|
|
|
</div>
|
2023-03-07 18:54:09 -08:00
|
|
|
@endif
|
2019-03-01 15:25:42 -08:00
|
|
|
|
2020-09-15 19:52:34 -07:00
|
|
|
|
2023-03-07 17:02:52 -08:00
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
</div>
|
2023-03-07 17:02:52 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|