@if(!empty($specCategories))
@php $categoryIndex = 0; @endphp
@foreach($specCategories as $category => $specs)
@php
// Handle case where specs might be a string (JSON) instead of array
if (is_string($specs)) {
$specs = json_decode($specs, true) ?? [];
}
if (!is_array($specs)) {
$specs = [];
}
@endphp
@endforeach
{{-- Add New Category Button --}}
No specifications
Get started by adding your first specification category.