Editing: home_hero.blade.php
<div class=" mt-3"> <div class="row"> <div class="col-12 col-md-6"> <form action="{{ getAdminPanelUrl() }}/settings/main" method="post"> {{ csrf_field() }} <input type="hidden" name="name" value="home_hero"> <input type="hidden" name="page" value="personalization"> @if(!empty(getGeneralSettings('content_translate'))) <div class="form-group"> <label class="input-label">{{ trans('auth.language') }}</label> <select name="locale" class="form-control js-edit-content-locale"> @foreach($userLanguages as $lang => $language) <option value="{{ $lang }}" @if(mb_strtolower(request()->get('locale', (!empty($itemValue) and !empty($itemValue['locale'])) ? $itemValue['locale'] : app()->getLocale())) == mb_strtolower($lang)) selected @endif>{{ $language }}</option> @endforeach </select> @error('locale') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> @else <input type="hidden" name="locale" value="{{ getDefaultLocale() }}"> @endif <div class="form-group"> <label>{{ trans('admin/main.title') }}</label> <input type="text" name="value[title]" value="{{ (!empty($itemValue) and !empty($itemValue['title'])) ? $itemValue['title'] : old('title') }}" class="form-control " required/> </div> <div class="form-group"> <label>{{ trans('public.description') }}</label> <textarea type="text" name="value[description]" rows="5" class="form-control " required>{{ (!empty($itemValue) and !empty($itemValue['description'])) ? $itemValue['description'] : old('description') }}</textarea> </div> <div class="form-group"> <label class="input-label">{{ trans('admin/main.hero_background') }}</label> <div class="input-group"> <div class="input-group-prepend"> <button type="button" class="input-group-text admin-file-manager" data-input="hero_background" data-preview="holder"> <i class="fa fa-chevron-up"></i> </button> </div> <input type="text" name="value[hero_background]" id="hero_background" required value="{{ (!empty($itemValue) and !empty($itemValue['hero_background'])) ? $itemValue['hero_background'] : old('hero_background') }}" class="form-control"/> </div> </div> <div class="form-group custom-switches-stacked"> <label class="custom-switch pl-0"> <input type="hidden" name="value[is_video_background]" value="0"> <input type="checkbox" name="value[is_video_background]" id="isVideoBackground" value="1" {{ (!empty($itemValue) and !empty($itemValue['is_video_background']) and $itemValue['is_video_background']) ? 'checked="checked"' : '' }} class="custom-switch-input"/> <span class="custom-switch-indicator"></span> <label class="custom-switch-description mb-0 cursor-pointer" for="isVideoBackground">{{ trans('update.is_video_background') }}</label> </label> <div class="text-muted text-small mt-1">{{ trans('update.is_video_background_hint') }}</div> </div> <button type="submit" class="btn btn-success">{{ trans('admin/main.save_change') }}</button> </form> </div> </div> </div>
Save
Back