@if($mode === 'preset')
{{ __('admin::lang.Select Preset Template') }}
@if(!empty($query['preset'])) {{ ProductQueryPresetEnum::from($query['preset'])->description() }} @endif
@if(isset($query['preset'])) @if(in_array($query['preset'], ['latest', 'trending']))
@elseif($query['preset'] === 'best_selling')
@endif @endif
@endif @if($mode === 'custom')
{{ __('admin::lang.Custom Filters & Sorting') }}
@if(!empty($query['filters'])) @foreach($query['filters'] as $index => $filter)
@endforeach @else
{{ __('admin::lang.No filters added. Click Add Filter to start') }}
@endif
@if(!empty($query['sort'])) @foreach($query['sort'] as $index => $sort)
@endforeach @else
{{ __('admin::lang.No sorting rules. Default sorting will be used') }}
@endif
@endif @if($mode === 'expert')
{{ __('admin::lang.Expert Mode - Advanced Logic') }}
{{ __('admin::lang.Warning') }}: {{ __('admin::lang.Expert mode allows complex queries with multiple condition groups') }}
@if(!empty($query['groups'])) @foreach($query['groups'] as $groupIndex => $group)
{{ __('admin::lang.Group') }} {{ $groupIndex + 1 }} @if($groupIndex > 0) {{ $group['logic'] }} @endif
@if($groupIndex > 0) @endif
@if(!empty($group['filters'])) @foreach($group['filters'] as $filterIndex => $filter)
@endforeach @endif
@endforeach @endif
@endif
@if($showPreview && $previewProducts)
{{ __('admin::lang.Preview') }}: {{ $previewProducts->count() }} {{ __('admin::lang.products') }}
@foreach($previewProducts as $product) @endforeach
{{ __('admin::lang.Product') }} {{ __('admin::lang.Price') }} {{ __('admin::lang.Status') }}
{{ $product->getTranslation('title', app()->getLocale()) }} {{ $product->default_price ?? 'N/A' }} {{ $product->status->value }}
@endif
@push('css') @endpush