@php $fields = [ ['name' => 'name', 'label' => trans('plugins/contact::contact.forms.name'), 'type' => 'text', 'required' => true], ['name' => 'email', 'label' => trans('plugins/contact::contact.forms.email'), 'type' => 'email', 'required' => true], ['name' => 'phone', 'label' => trans('plugins/contact::contact.forms.phone'), 'type' => 'text', 'required' => true], ['name' => 'commercial_registration_number', 'label' => trans('plugins/contact::contact.forms.commercial_registration_number'), 'type' => 'text'], ['name' => 'unified_number', 'label' => trans('plugins/contact::contact.forms.unified_number'), 'type' => 'text'], ['name' => 'tax_number', 'label' => trans('plugins/contact::contact.forms.tax_number'), 'type' => 'text'], ['name' => 'zakat_number', 'label' => trans('plugins/contact::contact.forms.zakat_number'), 'type' => 'text'], ['name' => 'classification_certificate', 'label' => trans('plugins/contact::contact.forms.classification_certificate'), 'type' => 'file'], ['name' => 'baladi_license', 'label' => trans('plugins/contact::contact.forms.baladi_license'), 'type' => 'file'], ['name' => 'development_certificate', 'label' => trans('plugins/contact::contact.forms.development_certificate'), 'type' => 'file'], ['name' => 'real_estate_contributions_certificate', 'label' => trans('plugins/contact::contact.forms.real_estate_contributions_certificate'), 'type' => 'file'], ['name' => 'exceptional_sale_certificate', 'label' => trans('plugins/contact::contact.forms.exceptional_sale_certificate'), 'type' => 'file'], ['name' => 'unified_electronic_precedence', 'label' => trans('plugins/contact::contact.forms.unified_electronic_precedence'), 'type' => 'text'], ['name' => 'owner_id_image', 'label' => trans('plugins/contact::contact.forms.owner_id_image'), 'type' => 'file'], ]; @endphp
@if ($title = $shortcode->title)

{!! BaseHelper::clean($title) !!}

@endif @if ($description = $shortcode->description)

{!! BaseHelper::clean($description) !!}

@endif
@csrf
@foreach ($fields as $field)
@if ($field['type'] === 'text' || $field['type'] === 'email') @elseif ($field['type'] === 'file') @endif @error('custom_fields.' . $field['name'])
{{ $message }}
@enderror
@endforeach