@props([ 'customAttributes' => [], 'entity' => null, 'canAddNew' => true, ]) @foreach ($customAttributes as $attribute) @php $validations = []; if ($attribute->is_required) { $validations[] = 'required'; } if ($attribute->type == 'price') { $validations[] = 'decimal'; } $validations[] = $attribute->validation; $validations = implode('|', array_filter($validations)); $key = 'installer::app.seeders.attributes.'.$attribute->entity_type.'.'.str_replace('_', '-', $attribute->code); $label = trans($key); if ($label === $key) { $label = $attribute->name; } @endphp {{ $label }} @if ($attribute->type == 'price') ({{ core()->currencySymbol(config('app.currency')) }}) @endif @if (isset($attribute)) @endif @endforeach