@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)); @endphp {{ $attribute->name }} @if ($attribute->type == 'price') ({{ core()->currencySymbol(config('app.currency')) }}) @endif @if (isset($attribute)) @endif @endforeach