@csrf
@php $existing_ids = $product->categories()->pluck('category_id')->toArray(); @endphp
@if ($errors->has('category_id.*')) {{ $errors->first('category_id.*') }} @endif
{{-- --}}
@error('brand') {{ $message }} @enderror
@error('tax_id') {{ $message }} @enderror
@error('weight_type') {{ $message }} @enderror
@error('flavour') {{ $message }} @enderror
@error('source') {{ $message }} @enderror
@error('form') {{ $message }} @enderror
{{--
@foreach ($product->variants as $variant) @endforeach
Varient Image Varient Type Varient Value Action
{{ $variant->variant->name }} {{ $variant->variant_value->name }} {{ $variant->variant_value->value }}
--}}
@foreach ($product->images as $image) @endforeach