@if(! empty($productOptions['optionCartValue'])) @if ($displayBasePrice) {{ trans('plugins/ecommerce::product-option.price') }}: {{ $product->original_product->price()->displayAsText() }} @endif @foreach ($productOptions['optionCartValue'] as $key => $optionValue) @php $price = 0; $totalOptionValue = count($optionValue); @endphp @continue(!$totalOptionValue) {{ $productOptions['optionInfo'][$key] }}: @foreach ($optionValue as $value) @php if ($value['affect_type'] == 1) { $price += ($product->original_product->price()->getPrice() * $value['affect_price']) / 100; } else { $price += $value['affect_price']; } @endphp {{ $value['option_value'] }}@if (! $loop->last), @endif @endforeach @if ($price > 0) + {{ format_price($price) }} @endif @endforeach @endif