@extends($templatePathAdmin.'layout') @section('main')

{{ $title_description??'' }}

@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if (old('image',$banner['image']??'')) @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('target')) {{ $errors->first('target') }} @endif
@if ($errors->has('html')) {{ $errors->first('html') }} @endif
@if (!empty($dataType))
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@endif
@if ($errors->has('sort')) {{ $errors->first('sort') }} @endif
@if (sc_check_multi_shop_installed()) {{-- select shop_store --}} @php $listStore = []; if (function_exists('sc_get_list_store_of_banner_detail')) { $oldData = sc_get_list_store_of_banner_detail($banner['id'] ?? ''); } else { $oldData = null; } $shop_store = old('shop_store', $oldData); if(is_array($shop_store)){ foreach($shop_store as $value){ $listStore[] = $value; } } @endphp
@if ($errors->has('shop_store')) {{ $errors->first('shop_store') }} @endif
{{-- //select shop_store --}} @endif
{{-- Custom fields --}} @php $customFields = isset($customFields) ? $customFields : []; $fields = !empty($banner) ? $banner->getCustomFields() : []; @endphp @includeIf($templatePathAdmin.'component.render_form_custom_field', ['customFields' => $customFields, 'fields' => $fields]) {{-- //Custom fields --}}
@endsection @push('styles') @endpush @push('scripts') @endpush