@extends('user.layout') @if (!empty($input->language) && $input->language->rtl == 1) @section('styles') @endsection @endif @section('content')
{{-- @dump($variations) --}}
{{ $item->title }}
@csrf

{{-- @dump($variations) --}} @foreach ($variations as $key => $lwVariaion)
@for ($i = 0; $i < count($languages); $i++)
@endfor
@php $op = json_decode($lwVariaion[0]['option_name']); $op_price = json_decode($lwVariaion[0]['option_price']); $op_stock = json_decode($lwVariaion[0]['option_stock']); @endphp @if ($op) @foreach ($op as $opIn => $w)
@php $opArr = []; for ($i = 0; $i < count($languages); $i++) { $opArr[$i] = json_decode($lwVariaion[$i]['option_name'] ?? ''); } @endphp @for ($i = 0; $i < count($languages); $i++)
@endfor

this price will be added with main item price

@endforeach @endif {{-- @endforeach --}} {{-- @endfor --}}
@endforeach
@endsection @section('scripts') @endsection