i have a blade file that i submit a value as query string in the view like below :
@foreach($productImageHelper->getProductImageColor($product) as $item)
<label class="circle">
<img class="img-fluid" src="{{$item['small_image_url']}}" alt="">
<input type="radio" name="color_id" value="{{$item['color_id']}}">
</label>
@endforeach
so now when i submit this form my url would be like below :
http://localhost:8000/products/exampleproduct?color_id=1
now in the same view file i want to recive the value of color_id and submit it to another url so the user selected color would go into his cart . how can i recive the color id and put it in some hidden input like below :
<input type="hidden" name="color_id" value="{{somecolorid}}">