<?php
$collection = collect(session()->get('product_option_price')[$product_id]);
return $original_price + $collection->whereNotIn('key', [$id])->sum('price') + $price;
<?php
$collection = collect(session()->get('product_option_price')[$product_id]);
return $original_price + $collection->whereNotIn('key', [$id])->sum('price') + $price;