File: D:/HostingSpaces/marisrental/boldt.tech/resources/views/site/organisms/forms/contact.blade.php
{{-- NOTE: This form will be send through ajax by the ChocolateFactory.js to prevent spam, the real post route is 'contact/process'. --}}
<form method="post" class="o-form js-chocolate-factory" action="contact/send" id="contactForm">
@if( !\App::environment('production') ) {{debug($errors)}} @endif
@include('site.components.form.honey')
{{ csrf_field() }}
<ul hidden class="c-form-feedback js-error-area" data-feedback="@lang('site/contact.feedback_message')"></ul>
{{-- To prevent to pass the variable to each form element individually we already name it here --}}
{{-- @php $formElementNoErrorArea = true @endphp--}}
<input type="hidden" name="form" value="Contactformulier">
<div class="o-form__body">
<h2 class="o-form__title">@lang('site/contact.form_title')</h2>
<div class="o-form__row">
@include('site.components.form.text', ['formElementCodeName' => 'company_name'])
</div>
<div class="o-form__row">
@include('site.components.form.text', ['formElementCodeName' => 'name'])
</div>
<div class="o-form__row">
@include('site.components.form.text', ['formElementCodeName' => 'phone'])
</div>
<div class="o-form__row">
@include('site.components.form.email', ['formElementCodeName' => 'email'])
</div>
<div class="o-form__row">
@include('site.components.form.textarea', ['formElementCodeName' => 'form_message'])
</div>
</div>
<div class="o-form__submit">
{{-- NOTE: We don't use a button to prevent bots from clicking on it --}}
<p class="c-button c-button--icon c-button--ghost js-golden-ticket">
<span class="c-button__text">@lang('site/form.send')</span>
<i class="c-button__icon">@include('site.components.icons.arrowHead')</i>
</p>
</div>
</form>