HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/stafa.komma.pro/resources/views/site/organisms/forms/form1.blade.php
@push('scripts')
    <script src='https://www.google.com/recaptcha/api.js?hl={{ App::getLocale() }}'></script>
@endpush

{{-- 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  o-form--flat-top" action="{{ route('form1.process') }}">

    @if( !\App::environment('production') ) {{debug($errors)}} @endif

    {{ csrf_field() }}

    <div class="o-form__container" data-ornament-type="filled">
        <div class="o-form__body">

            @for($i = 1; $i < 4; $i++)
                <div class="o-form__row">
                    @include('site.components.form.select', [
                        'formElementCodeName' => 'test' . $i,
                        'formElementOptions' => [
                            'Antwoord A' => __('site/form.answer_a'),
                            'Antwoord B' => __('site/form.answer_b'),
                            'Antwoord C' => __('site/form.answer_c'),
                            'Antwoord D' => __('site/form.answer_d'),
                        ]
                    ])
                </div>
            @endfor

            @if(\Config::get('services.recaptcha.key'))
                <div class="o-form__row">
                    <div class="input-holder {{ $errors->first('g-recaptcha-response','error') }}">
                        <div class="g-recaptcha"
                             data-sitekey="{{ \Config::get('services.recaptcha.key') }}">
                        </div>

                        @if(!empty($errors->first('g-recaptcha-response')))
                            <div class="c-form-element__error  js-form-element-error">
                                <div class="c-error-line">
                                    <span class="c-error-line__text">{{ ucfirst($errors->first('g-recaptcha-response')) }}</span>
                                </div>
                            </div>
                        @endif
                    </div>
                </div>
            @endif


            <div class="o-form__submit">
                @include('site.components.form.submit', [
                    'formElementValue' => __('site/form.send')
                ] )
            </div>
        </div>
    </div>

</form>