@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@php $existing_ids = $product->categories()->pluck('category_id')->toArray(); @endphp
@if ($errors->has('category_id.*')) {{ $errors->first('category_id.*') }} @endif
{{-- --}} {{-- --}} @foreach ($product->variants as $variant) {{-- --}} {{-- --}} @endforeach
Varient ImageVarient Type VarientTitle Size PriceAction
{{ $variant->variant->name }} {{ $variant->variant_value->name }}{{ $variant->title }} {{ $variant->size }} {{ $variant->price }}
@foreach ($product->images as $image) @endforeach