@php $attributes = []; if (!empty($record->custom_attribute)) { $attributes = is_array($record->custom_attribute) ? $record->custom_attribute : json_decode($record->custom_attribute, true); } @endphp @if(!empty($attributes)) @foreach($attributes as $key => $value) @endforeach
Attribute Value
{{ $key }} {{ is_null($value) ? '—' : $value }}
@else No custom attributes @endif