File: D:/HostingSpaces/SBogers47/ehbocranendonck.nl/app/views/forms/events.blade.php
<div class="contact-form">
@if(!$page->send)
<h2>{{KommaLang::get('eventForm')}}</h2>
{{ Form::open(['url' => URL::to(route('events.process'), [], true), 'id' => 'eventForm', 'class' => 'form']) }}
<p>@lang('translations.organisation')</p>
<div class="nameOrganisation form-element ">
{{Form::label('nameOrganisation',trans('translations.nameOrganisation'))}}
<span class="error-message {{($errors->has('nameOrganisation')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('nameOrganisation', Input::old('nameOrganisation'), ['id' => 'nameOrganisation']) }}
</div>
<div class="addressOrganisation form-element ">
{{Form::label('addressOrganisation',trans('translations.addressOrganisation'))}}
<span class="error-message {{($errors->has('addressOrganisation')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('addressOrganisation', Input::old('addressOrganisation'), ['id' => 'addressOrganisation']) }}
</div>
<div class="zipOrganisation form-element ">
{{Form::label('zipOrganisation',trans('translations.zipOrganisation'))}}
<span class="error-message {{($errors->has('zipOrganisation')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('zipOrganisation', Input::old('zipOrganisation'), ['id' => 'zipOrganisation']) }}
</div>
<div class="cityOrganisation form-element ">
{{Form::label('cityOrganisation',trans('translations.cityOrganisation'))}}
<span class="error-message {{($errors->has('cityOrganisation')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('cityOrganisation', Input::old('cityOrganisation'), ['id' => 'cityOrganisation']) }}
</div>
<p>@lang('translations.contactPerson')</p>
<div class="nameContactPerson form-element ">
{{Form::label('nameContactPerson',trans('translations.nameContactPerson'))}}
<span class="error-message {{($errors->has('nameContactPerson')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('nameContactPerson', Input::old('nameContactPerson'), ['id' => 'nameContactPerson']) }}
</div>
<div class="phoneContactPerson form-element ">
{{Form::label('phoneContactPerson',trans('translations.phoneContactPerson'))}}
<span class="error-message {{($errors->has('phoneContactPerson')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('phoneContactPerson', Input::old('phoneContactPerson'), ['id' => 'phoneContactPerson']) }}
</div>
<div class="emailContactPerson form-element ">
{{Form::label('emailContactPerson',trans('translations.emailContactPerson'))}}
<span class="error-message {{($errors->has('emailContactPerson')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::email('emailContactPerson', Input::old('emailContactPerson'), ['id' => 'emailContactPerson']) }}
</div>
<p>@lang('translations.paymaster')</p>
<div class="namePaymaster form-element ">
{{Form::label('namePaymaster',trans('translations.namePaymaster'))}}
<span class="error-message {{($errors->has('namePaymaster')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('namePaymaster', Input::old('namePaymaster'), ['id' => 'namePaymaster']) }}
</div>
<div class="emailPaymaster form-element ">
{{Form::label('emailPaymaster',trans('translations.emailPaymaster'))}}
<span class="error-message {{($errors->has('emailPaymaster')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::email('emailPaymaster', Input::old('emailPaymaster'), ['id' => 'emailPaymaster']) }}
</div>
<div class="addressPaymaster form-element ">
{{Form::label('addressPaymaster',trans('translations.addressPaymaster'))}}
<span class="error-message {{($errors->has('addressPaymaster')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('addressPaymaster', Input::old('addressPaymaster'), ['id' => 'addressPaymaster']) }}
</div>
<div class="zipPaymaster form-element ">
{{Form::label('zipPaymaster',trans('translations.zipPaymaster'))}}
<span class="error-message {{($errors->has('zipPaymaster')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('zipPaymaster', Input::old('zipPaymaster'), ['id' => 'zipPaymaster']) }}
</div>
<div class="cityPaymaster form-element ">
{{Form::label('cityPaymaster',trans('translations.cityPaymaster'))}}
<span class="error-message {{($errors->has('cityPaymaster')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('cityPaymaster', Input::old('cityPaymaster'), ['id' => 'cityPaymaster']) }}
</div>
<div class="sendInvoicePaymaster form-element checkboxes">
<p class="label-replacement">
@lang('translations.sendInvoiceOption') @lang('translations.defaultByMail')
</p>
<label>
{{Form::checkbox('sendInvoicePaymaster', 'value')}}
<span>@lang('translations.sendInvoice')</span>
</label>
</div>
<p>@lang('translations.event')</p>
<div class="startDateTime form-element ">
{{Form::label('startDateTime',trans('translations.startDateTime'))}}
<span class="error-message {{($errors->has('startDateTime')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('startDateTime', Input::old('startDateTime'), ['id' => 'startDateTime']) }}
</div>
<div class="endDateTime form-element ">
{{Form::label('endDateTime',trans('translations.endDateTime'))}}
<span class="error-message {{($errors->has('endDateTime')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('endDateTime', Input::old('endDateTime'), ['id' => 'endDateTime']) }}
</div>
<div class="descriptionEvent form-element text-area">
{{Form::label('descriptionEvent',trans('translations.descriptionEvent'))}}
<span class="error-message {{($errors->has('descriptionEvent')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::textarea('descriptionEvent', Input::old('descriptionEvent') ,['id'=>'descriptionEvent', 'rows'=>'6']) }}
</div>
<div class="attendees form-element ">
{{Form::label('attendees',trans('translations.attendees'))}}
<span class="error-message {{($errors->has('attendees')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('attendees', Input::old('attendees'), ['id' => 'attendees']) }}
</div>
<div class="visitors form-element ">
{{Form::label('visitors',trans('translations.visitors'))}}
<span class="error-message {{($errors->has('visitors')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('visitors', Input::old('visitors'), ['id' => 'visitors']) }}
</div>
<div class="location form-element ">
{{Form::label('location',trans('translations.location'))}}
<span class="error-message {{($errors->has('location')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('location', Input::old('location'), ['id' => 'location']) }}
</div>
<div class="firstAidPersons form-element ">
{{Form::label('firstAidPersons',trans('translations.firstAidPersons'))}}
<span class="error-message {{($errors->has('firstAidPersons')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::text('firstAidPersons', Input::old('firstAidPersons'), ['id' => 'firstAidPersons']) }}
</div>
<div class="extra_message form-element text-area">
{{Form::label('formMessage',trans('translations.extraMessageEvent'))}}
<span class="error-message {{($errors->has('formMessage')? 'active' :'')}}">@lang('translations.required')</span>
{{ Form::textarea('formMessage', Input::old('formMessage') ,['id'=>'formMessage', 'rows'=>'6']) }}
</div>
@if($errors->any())
<div class="error-message__wrapper">
<p>Niet alle velden zijn ingevuld/aangevinkt</p>
<span class="error-message {{($errors->has('nameOrganisation')? 'active' :'')}}">{{$errors->first('nameOrganisation')}}</span>
<span class="error-message {{($errors->has('addressOrganisation')? 'active' :'')}}">{{$errors->first('addressOrganisation')}}</span>
<span class="error-message {{($errors->has('zipOrganisation')? 'active' :'')}}">{{$errors->first('zipOrganisation')}}</span>
<span class="error-message {{($errors->has('cityOrganisation')? 'active' :'')}}">{{$errors->first('cityOrganisation')}}</span>
<span class="error-message {{($errors->has('nameContactPerson')? 'active' :'')}}">{{$errors->first('nameContactPerson')}}</span>
<span class="error-message {{($errors->has('phoneContactPerson')? 'active' :'')}}">{{$errors->first('phoneContactPerson')}}</span>
<span class="error-message {{($errors->has('emailContactPerson')? 'active' :'')}}">{{$errors->first('emailContactPerson')}}</span>
<span class="error-message {{($errors->has('namePaymaster')? 'active' :'')}}">{{$errors->first('namePaymaster')}}</span>
<span class="error-message {{($errors->has('emailPaymaster')? 'active' :'')}}">{{$errors->first('emailPaymaster')}}</span>
<span class="error-message {{($errors->has('addressPaymaster')? 'active' :'')}}">{{$errors->first('addressPaymaster')}}</span>
<span class="error-message {{($errors->has('zipPaymaster')? 'active' :'')}}">{{$errors->first('zipPaymaster')}}</span>
<span class="error-message {{($errors->has('cityPaymaster')? 'active' :'')}}">{{$errors->first('cityPaymaster')}}</span>
<span class="error-message {{($errors->has('startDateTime')? 'active' :'')}}">{{$errors->first('startDateTime')}}</span>
<span class="error-message {{($errors->has('endDateTime')? 'active' :'')}}">{{$errors->first('endDateTime')}}</span>
<span class="error-message {{($errors->has('descriptionEvent')? 'active' :'')}}">{{$errors->first('descriptionEvent')}}</span>
<span class="error-message {{($errors->has('attendees')? 'active' :'')}}">{{$errors->first('attendees')}}</span>
<span class="error-message {{($errors->has('visitors')? 'active' :'')}}">{{$errors->first('visitors')}}</span>
<span class="error-message {{($errors->has('location')? 'active' :'')}}">{{$errors->first('location')}}</span>
<span class="error-message {{($errors->has('firstAidPersons')? 'active' :'')}}">{{$errors->first('firstAidPersons')}}</span>
<span class="error-message {{($errors->has('formMessage')? 'active' :'')}}">{{$errors->first('formMessage')}}</span>
<span class="error-message {{($errors->has('acceptTerms')? 'active' :'')}}">{{$errors->first('acceptTerms')}}</span>
<span class="error-message {{($errors->has('recaptcha')? 'active' :'')}}">{{$errors->first('recaptcha')}}</span>
</div>
@endif
<div class="acceptTerms form-element checkboxes">
<label>
{{Form::checkbox('acceptTerms', 'value')}}
<span>@lang('translations.acceptTerms')</span>
</label>
</div>
<div class="g-recaptcha" data-sitekey="6LerDgUrAAAAAAGJ6kB8ppaxbNCsCCW79JM9OkEw"></div>
<div class="submit">
<p class="button">
@lang('translations.sendApplication')
<span class="arrow">@include('svg.arrow')</span>
</p>
{{ Form::submit(trans('translations.sendApplication')) }}
</div>
{{ Form::close() }}
@else
<h2>{{ KommaLang::get('thanksContactFormTitle') }}</h2>
<p>{{ KommaLang::get('thanksContactFormText') }}</p>
@endif
</div>