{{ __('Specifications of :x', ['x' => $name]) }}

@if(!empty($weight)) @else @endif @if(is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['length']) && $dimensions['length'] != "" || is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['width']) && $dimensions['width'] != "" || is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['height']) && $dimensions['height'] != "" ) @else @endif @if(!empty($attributes)) @foreach ($attributes as $attribute) @if($attribute['visibility'] == 1) @endif @endforeach @endif
{{ __('Weight') }} {{ $weight }} {{ preference('measurement_weight') }}
{{ __('Dimensions') }} {{ $dimensions['length'] ?? null }} {{ isset($dimensions['width']) && $dimensions['width'] != "" ? "× " . $dimensions['width'] : '' }} {{ isset($dimensions['height']) && $dimensions['height'] != "" ? "× " . $dimensions['height'] : '' }} {{ preference('measurement_dimension') }}
{{ $attribute['name'] }} @php $len = count($attribute['value']); $i = 1 @endphp @foreach ($attribute['value'] as $attValue) @php $result = null; if (isset($attribute_values[$attribute['key']])) { $dataQuery = $attribute_values[$attribute['key']]->where('id', $attValue)->first(); if (!empty($dataQuery)) { $result = $dataQuery->value; } else { $result = $attValue; } } else { $result = $attValue; } @endphp {{ $result }} {{ $len > $i ? "," : null }} @php $i++ @endphp @endforeach