{{ $collection->translateAttribute('name') }}

{{ __('adminhub::catalogue.collections.show.save_btn') }}
@include('adminhub::partials.attributes')
@include('adminhub::partials.image-manager', [ 'existing' => $images, 'wireModel' => 'imageUploadQueue', 'filetypes' => ['image/*'], ])
@include('adminhub::partials.availability', [ 'type' => 'collection', 'channels' => true, 'customerGroups' => [ 'purchasable' => false, ], ])
@include('adminhub::partials.urls')

{{ __('adminhub::menu.products') }}

@livewire('hub.components.product-search', [ 'existing' => collect($products), ])
@if ($products->count())
@endif
@forelse($products as $product)
@if ($collection->sort == 'custom')
@endif
@if ($product['thumbnail']) @endif
{{ $product['name'] }}
@if (strpos($collection->sort, 'base_price') !== false) {{ $product['base_price'] }} @elseif(strpos($collection->sort, 'sku') !== false)
{{ $product['sku'] }}
@endif
@empty @if(!$products->count() && $this->productCount >= 30)
Load {{ $this->productCount }} products
@else {{ __('adminhub::catalogue.collections.show.no_products') }} @endif @endforelse
{{ __('adminhub::catalogue.collections.create.child.title', [ 'parent' => $collection->translateAttribute('name'), ]) }}
@if ($this->slugIsRequired) @endif
{{ __('adminhub::global.cancel') }} {{ __('adminhub::catalogue.collections.create.btn') }}

{{ __('adminhub::menu.collections') }}

{{ __('adminhub::catalogue.collections.groups.node.add_child') }}
@forelse($children as $child)
{{ $child->translateAttribute('name') }} {{ __('adminhub::global.edit') }}
@empty {{ __('adminhub::catalogue.collections.show.no_children') }} @endforelse
@if ($collection->id)
{{ __('adminhub::inputs.danger_zone.title') }}
{{ __('adminhub::catalogue.collections.delete.title') }}

{{ __('adminhub::catalogue.collections.delete.warning') }}

{{ __('adminhub::global.delete') }}
{{ __('adminhub::catalogue.collections.delete.title') }} @if ($childCount = $children->count()) {{ __('adminhub::catalogue.collections.delete.child.warning', [ 'count' => $childCount, ]) }} @else

{{ __('adminhub::catalogue.collections.delete.root.warning') }}

@endif
{{ __('adminhub::global.cancel') }} {{ __('adminhub::catalogue.collections.delete.btn') }}
@endif