File: D:/HostingSpaces/SBogers96/smilefotografie.nl/app/storage/views/a032f3037b53a30608b1405911670f06
<?php $__env->startSection('header'); ?>
<div class="grid-container">
<div class="intro-title">
<?php echo $page->name; ?>
</div>
<div class="intro-text">
<?php echo $page->description; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="grid-container">
<div class="margin-left-7 column-7 form-holder">
<?php if(Session::has('success')): ?>
<?php echo Session::forget('success'); ?>
<span class="form-title">Bedankt voor uw aanvraag</span>
<p>
Bedankt voor het aanvragen van een offerte.
We nemen zo spoedig mogelijk contact met u op.
Heeft u nog vragen? Schroom niet om <a href="/contact">contact</a> op te nemen.
</p>
<?php else: ?>
<?php echo Form::open([
'url' => URL::action('form.offer.process')
]); ?>
<span class="form-title">Offerte aanvragen</span>
<?php /* Check for errors */ ?>
<?php if($errors->any()): ?>
<?php /* Count errors */ ?>
<span class="message global error">
<?php if(count($errors->all()) > 1): ?>
U dient de roodgemarkeerde velden correct in te vullen.
<?php else: ?>
U dient het roodgemarkeerde veld correct in te vullen.
<?php endif; ?>
</span>
<?php endif; ?>
<?php /* Offer type */ ?>
<div class="input-holder radio">
<?php /* Default data because it is a radio button */ ?>
<?php if( ! isset($data['offer_type'])) $data['offer_type'] = null ?>
<?php echo Form::radio('offer_type','Particulier', ($data['offer_type'] == 'Particulier'),['id'=>'offer_type_private']); ?>
<?php echo Form::label('offer_type_private','Particulier',['class'=>'inline']); ?>
<?php echo Form::radio('offer_type','Zakelijk', ($data['offer_type'] == 'Zakelijk'),['id'=>'offer_type_business']); ?>
<?php echo Form::label('offer_type_business','Zakelijk',['class'=>'inline']); ?>
</div>
<?php /* Naam */ ?>
<div class="input-holder column-half <?php echo $errors->first('name','error');; ?>">
<?php echo Form::label('name',Lang::get('form.offer.name')); ?>
<?php echo Form::text('name', $data['name']); ?>
</div>
<?php /* Company */ ?>
<div class="input-holder column-half right <?php echo $errors->first('company','error');; ?>">
<?php echo Form::label('company',Lang::get('form.offer.company') .' (optioneel)'); ?>
<?php echo Form::text('company', $data['company']); ?>
</div>
<?php /* E-mail */ ?>
<div class="input-holder column-half <?php echo $errors->first('email','error');; ?>">
<?php echo Form::label('email',Lang::get('form.offer.email')); ?>
<?php echo Form::text('email', $data['email']); ?>
</div>
<?php /* Phone */ ?>
<div class="input-holder column-half right <?php echo $errors->first('phone','error');; ?>">
<?php echo Form::label('phone',Lang::get('form.offer.phone')); ?>
<?php echo Form::text('phone', $data['phone']); ?>
</div>
<?php /* Type */ ?>
<div class="input-holder">
<?php echo Form::label('photo_type',Lang::get('form.offer.photo_type') , ': (optioneel)'); ?>
<?php echo Form::select('photo_type', [
'Maak uw keuze',
'Bruidsfotografie',
'Portretfotografie',
'Bedrijfsfotografie',
'Productfotografie',
'Reportage',
'Overig'
], $data['photo_type']); ?>
</div>
<?php /* Message */ ?>
<div class="input-holder <?php echo $errors->first('message','error');; ?>">
<?php echo Form::label('message','Omschrijving opdracht'); ?>
<?php echo Form::textarea('message', $data['message']); ?>
</div>
<?php echo Form::submit('Aanvraag verzenden',['class' => 'button blue']); ?>
<?php echo Form::hidden('formName',$page->code_name); ?>
<?php echo Form::hidden('route',Request::path()); ?>
<?php echo Form::close(); ?>
<?php endif; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>