@if (count($customer_fields))
@foreach ($customer_fields as $customer_field)
@php
if ($customer_field->display) {
$customer_field_link = $customer_field->getLink($customer_fields);
}
@endphp
@if ($customer_field->display && ($customer_field->value != '' || $customer_field_link))
{{ $customer_field->name }}:
@if ($customer_field->type == CustomerField::TYPE_DATE)
{{ App\User::dateFormat($customer_field->value, 'M j, Y', false, true, false) }}
@elseif ($customer_field->type == CustomerField::TYPE_DROPDOWN)
@if (is_array($customer_field->options) && isset($customer_field->options[$customer_field->value]))
{{ $customer_field->options[$customer_field->value] }}
@endif
@elseif ($customer_field->type == CustomerField::TYPE_LINK)
@if ($customer_field_link)
{{ CustomerField::shortenLink($customer_field_link) }}@endif
@else
@php
$field_text = $customer_field->getAsText();
@endphp
@if (starts_with($field_text, ['http://', 'https://']))
{{ $customer_field->getAsText() }}
@else
{{ $customer_field->getAsText() }}
@endif
@endif
@endif
@endforeach
@endif