@if($warranty->products && $warranty->products->count() > 0)
@foreach($warranty->products as $index => $product)
@error("products.{$index}.product_id")
{{ $message }}
@enderror
pivot->quantity) }}"
min="1" max="999" required
title="Quantity must be between 1 and 999">
@error("products.{$index}.quantity")
{{ $message }}
@enderror
@if($index > 0)
@endif
@endforeach
@else
@error("products.0.product_id")
{{ $message }}
@enderror
@error("products.0.quantity")
{{ $message }}
@enderror
@endif