@foreach ($variations as $key => $variation) @php $name = ''; $code_array = array_filter(explode('/', $variation->code)); $lstKey = array_key_last($code_array); foreach ($code_array as $j => $comb) { $comb = explode(':', $comb); $option_name = Modules\Attribute\Entities\Attribute::find($comb[0])->getTranslation('name', $langCode, true); $choice_name = Modules\Attribute\Entities\AttributeValue::find($comb[1])->getTranslation('attribute_value', $langCode, true); $name .= $option_name . ': ' . $choice_name; if ($lstKey != $j) { $name .= ' / '; } } @endphp @endforeach
@section('modal') @include('product::partials.updated_stock_variant') @endsection
{{ translate('Browse') }}
{{ translate('Choose File') }}