{{ __('admin::home.Add') }} ( {{ __('admin::lang.Ad Space') }} )
{{ __('admin::lang.Basic Info') }}
@error('name_ar') {{ $message }} @enderror
@error('name_en') {{ $message }} @enderror
{{ __('admin::lang.Unique identifier') }} @error('key') {{ $message }} @enderror
@if(!in_array($type, ['product_tabs', 'product_slider', 'product_sidebar']))
{{ __('admin::lang.Display Settings') }}
@endif @if(in_array($type, ['product_tabs', 'product_slider', 'product_sidebar']))
{{ __('admin::lang.Product Settings') }}
{{ __('admin::lang.Maximum number of active products in this section') }}
{{ __('admin::lang.Product sections do not require image dimensions. Products will use their own images.') }}
@endif @if(in_array($type, ['slider', 'carousel']))
{{ __('admin::lang.Slider Settings') }}
@endif @if($type == 'grid_banners')
{{ __('admin::lang.Grid Settings') }}
@endif @if($type === 'product_tabs')
{{ __('admin::lang.Product Tabs Configuration') }}
{{ count(array_filter($tabConfig, fn($t) => $t['enabled'] ?? false)) }}/{{ count($tabConfig) }} {{ __('admin::lang.Enabled') }}
{{ __('admin::lang.Enable tabs and configure their queries to show dynamic product lists') }}
@foreach(\Application\Admin\Livewire\BannerSpace\Modal\CreateSpace::AVAILABLE_TABS as $key => $defaultTitles)
{{ $defaultTitles[app()->getLocale()] ?? $defaultTitles['en'] }}
{{ $key }}
@if($tabConfig[$key]['enabled'] ?? false)
@if(($tabConfig[$key]['query']['type'] ?? 'preset') === 'preset') {{ __('admin::lang.Auto') }} @else {{ __('admin::lang.Custom') }} @endif
@else
{{ __('admin::lang.Enable this tab to configure') }}
@endif
@endforeach
{{ __('admin::lang.Default') }}: 10
@endif