@php
$pickerId = $pickerId ?? 'watch-buy-products';
$primaryPickerId = $pickerId.'-primary';
$selectedAttachments = array_map(
'intval',
old('attachment_ids', array_column($selectedOptions ?? [], 'id'))
);
$primaryAttachment = (int) old(
'primary_attachment_id',
$selected['primary_attachment_id'] ?? 0
);
@endphp
{{ __('labels.watch_buy_product_attachments') }}
{{ __('labels.watch_buy_product_attachments_hint') }}
{{ __('labels.watch_buy_product_search_hint') }}
@error('attachment_ids')
{{ $message }}
@enderror
@error('attachment_ids.*')
{{ $message }}
@enderror
@if($primary)
{{ __('labels.watch_buy_primary_product_hint') }}
@error('primary_attachment_id')
{{ $message }}
@enderror
@endif
@once
@push('scripts')
@endpush
@endonce