@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
--}}
{{-- --}} @foreach ($product->variants as $variant) {{-- --}} @endforeach
Varient ImageVarient Type Varient Title Size Price Action
{{ $variant->variant->name }} {{ $variant->variant_value->name }} {{ $variant->title }} {{ $variant->size }} {{ $variant->price }}
@foreach ($product->images as $image) @endforeach