@foreach ($customAttributes as $attribute) @if (view()->exists($typeView = 'admin::common.custom-attributes.view.' . $attribute->type))
{{ $attribute->name }}
@include ($typeView, ['value' => isset($entity) ? $entity[$attribute->code] : null])
@endif @endforeach