@if(!empty($product->variant))
@foreach(json_decode($product->variant) as $id => $terms)
@php
$variant = get_product_variant_list_by_id($id);
@endphp
@if(!empty($variant))
{{$variant->title}}
@php
$prices = json_decode($variant->price);
@endphp
@foreach($terms as $term)
@php
$v_term_index = array_search($term,json_decode($variant->terms,true));
@endphp
-
{{$term}}
@if(isset($prices[$v_term_index]) && !empty($prices[$v_term_index]))
+ {{amount_with_currency_symbol($prices[$v_term_index])}}
@endif
@endforeach
@endif
@endforeach
@endif