@if ($displayBasePrice && $basePrice != null)
{{ trans('plugins/ecommerce::product-option.price') }}: {{ format_price($basePrice) }}
@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_price']) { if ($value['affect_type'] == 1) { $price += ($basePrice * $value['affect_price']) / 100; } else { $price += $value['affect_price']; } } @endphp {{ $value['option_value'] }} @if ($key + 1 < $totalOptionValue) , @endif @endforeach @if ($price > 0) + {{ format_price($price) }} @endif
@endforeach