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/wingssprayer.komma.pro/resources/views/organisms/forms/vacancy.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" action="{{route("vacancy.process")}}" id="vacancyForm">

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

    {{ csrf_field() }}

    <h3 class="o-form__title">@lang('site/vacancies.formTitle')</h3>

    @if ($errors->any())
        <ul class="c-form-feedback" data-feedback="@lang('site/vacancies.feedbackMessage')">
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    @endif

    {{-- To prevent to pass the variable to each form element individually we already name it here --}}
    @php $formElementNoErrorArea = true @endphp

    {{--    @php $formElementNoErrorArea = true @endphp--}}
    @if(!isset($send))
        <div class="o-form__body">

            <div class="o-form__row">
                @include('components.form.text', ['formElementCodeName' => 'name'])
            </div>
            <div class="o-form__row  o-form__row--split">
                <div class="o-form__column">
                    @include('components.form.email', ['formElementCodeName' => 'email'])
                </div>
                <div class="o-form__column">
                    @include('components.form.text', ['formElementCodeName' => 'phone'])
                </div>
            </div>
            <div class="o-apply__row  o-apply__fileupload">
                @include('components.form.fileUpload', ['formGroupCodeName' => 'files', 'formGroupNoErrorArea' => true])
            </div>
            <div class="o-form__row">
                @include('components.form.textarea', ['formElementCodeName' => 'motivation'])
            </div>

        </div>

        <div class="o-form__submit  o-form__submit--align-right">

            {{-- NOTE: We don't use a button to prevent bots from clicking on it --}}
            @include('components.button', [
                'isButton' => true,
                'buttonSubmit' => true,
                'buttonText' => __('site/vacancies.buttonText'),
                'buttonClasses' => 'js-golden-ticket'
            ])

        </div>
    @else
        <h2 class="u-spacing-mt8">@lang('site/vacancy.sent.title')</h2>
        <p>@lang('site/vacancy.sent.description')</p><br>
    @endif
</form>