@php
$storedImages = json_decode($item->itemDetails->where('form_detail_id', $formDetail->id)->first()?->value, true) ?? [];
$imagePaths = $storedImages;
@endphp
@if (!empty($imagePaths))
@foreach ($imagePaths as $image)
 }})
@endforeach
@endif
@error("form_detail.$formDetail->id")
{{ $message }}
@enderror