{!! Form::open(['action' => 'PostedJobsController@post_job_email', 'files' => TRUE]) !!}
<!-- Contact full name Form Text -->
<div class="form-group {{ (!empty(old('contact_full_name')) && !$errors->has('contact_full_name')) ? 'has-success' : 'has-error' }}">
    {!! Form::label('contact_full_name', 'Contact Full Name') !!}
    {!! Form::text('contact_full_name', NULL, ['class' => 'form-control']) !!}
</div>
<div class="row">
    <div class="col-md-5"><!-- Contact email Form Text -->
        <div class="form-group {{ ((!empty(old('contact_telephone')) || !empty(old('contact_email'))) && !$errors->has('contact_email')) ? 'has-success' : 'has-error' }}">
            {!! Form::label('contact_email', 'Contact Email') !!}
            {!! Form::text('contact_email', NULL, ['class' => 'form-control']) !!}
        </div>
    </div>
    <div class="col-md-2 text-center">
        <h3>OR</h3>
    </div>
    <div class="col-md-5">
        <!-- Contact telephone Form Text -->
        <div class="form-group {{ ((!empty(old('contact_telephone')) || !empty(old('contact_email'))) && !$errors->has('contact_email')) ? 'has-success' : 'has-error' }}">
            {!! Form::label('contact_telephone', 'Contact Telephone') !!}
            {!! Form::text('contact_telephone', NULL, ['class' => 'form-control']) !!}
        </div>
    </div>
</div>
<!-- Company name Form Text -->
<div class="form-group {{ (!empty(old('company_name')) && !$errors->has('company_name')) ? 'has-success' : 'has-error' }}">
    {!! Form::label('company_name', 'Company name') !!}
    {!! Form::text('company_name', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Company address Form Text -->
<div class="form-group">
    {!! Form::label('company_address', 'Company address') !!}
    {!! Form::text('company_address', NULL, ['class' => 'form-control']) !!}
</div>
<!-- City Form Text -->
<div class="form-group">
    {!! Form::label('city', 'City') !!}
    {!! Form::text('city', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Zip code Form Text -->
<div class="form-group">
    {!! Form::label('zip_code', 'Zip code') !!}
    {!! Form::text('zip_code', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Country Form Text -->
<div class="form-group">
    {!! Form::label('country', 'Country') !!}
    {!! Form::text('country', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Vat number Form Text -->
<div class="form-group">
    {!! Form::label('vat_number', 'Vat Number') !!}
    {!! Form::text('vat_number', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Upload logo Form Text -->
<div class="form-group">
    {!! Form::label('upload_logo', 'Upload Logo') !!}
    @if(!empty(old('upload_logo')) && !$errors->has('upload_logo'))
        <div class="alert alert-danger" role="alert">We only allow images be uploaded.</div>
    @endif
    {!! Form::file('upload_logo', ['accept' => 'image/*']) !!}
</div>
<!-- Job ad text Form Textarea -->
<div class="form-group">
    {!! Form::label('job_ad_text', 'Job ad text') !!}
    {!! Form::textarea('job_ad_text', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Job Ad Email -->
<div class="form-group {{ $errors->has('job_ad_email') ? 'has-error' : ''}}">
    {!! Form::label('job_ad_email', 'Application e-mail') !!}
    {!! Form::text('job_ad_email', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Job Ad Link -->
<div class="form-group {{ $errors->has('job_ad_link') ? 'has-error' : ''}}">
    {!! Form::label('job_ad_link', 'Link for applications') !!}
    {!! Form::text('job_ad_link', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Youtube link Form Text -->
<div class="form-group {{ $errors->has('youtube_link') ? 'has-error' : ''}}">
    {!! Form::label('youtube_link', 'Youtube link') !!}
    {!! Form::text('youtube_link', NULL, ['class' => 'form-control']) !!}
</div>
<!-- Upgrade linkedin job ad Form Checkbox -->
<div class="form-group">
    {!! Form::label('upgrade_linkedin_job_ad', 'Upgrade with a LinkedIn Job Ad, price 335 US$') !!}
    {!! Form::checkbox('upgrade_linkedin_job_ad', 1, FALSE) !!}
</div>
<!-- Confirm purchase Form Checkbox -->
<div class="form-group">
    {!! Form::label('confirm_purchase', 'Confirm purchase') !!}
    {!! Form::checkbox('confirm_purchase', 1, FALSE) !!}
</div>
<!-- Form Submit -->
<div class="form-group">
    {!! Form::submit('Submit Job', ['class' => 'btn btn-primary form-control']) !!}
</div>
{!! Form::close() !!}