@php
// Decode the JSON string back to an array
$specificationsArray = json_decode($product->specifications, true);
@endphp
@if (is_array($specificationsArray) && !empty($specificationsArray))
@foreach ($specificationsArray as $specification)
@php
// Decode the JSON string back to an array
$specificationsArray = json_decode($product->specifications, true);
@endphp
@if (is_array($specificationsArray) && !empty($specificationsArray))
@foreach ($specificationsArray as $specification)