@if($showBtn) @if(!empty($label)) {{ $label }} @else {{ __('adminhub::components.product-search.btn') }} @endif @endif
@if($this->searchTerm) @if($this->results->total() > $maxResults) {{ __('adminhub::components.product-search.max_results_exceeded', [ 'max' => $maxResults, 'total' => $this->results->total() ]) }} @endif
@forelse($this->results as $product)
{{ $product->translateAttribute('name') }} {{ $product->deleted_at }}
@if(!$this->existingIds->contains($product->id) && !collect($this->exclude)->contains($product->id)) @if(collect($this->selected)->contains($product->id)) @elseif (!collect($this->exclude)->contains($product->id)) @endif @elseif(collect($this->exclude)->contains($product->id)) {{ __('adminhub::components.product-search.associate_self') }} @else {{ __('adminhub::components.product-search.exists_in_collection') }} @endif
@empty {{ __('adminhub::components.product-search.no_results') }} @endforelse
@else
{{ __('adminhub::components.product-search.pre_search_message') }}
@endif
@forelse($this->selectedModels as $product)
{{ $product->translateAttribute('name') }}
@empty
{{ __('adminhub::components.product-search.select_empty') }}
@endforelse
{{ __('adminhub::components.product-search.commit_btn') }}