@if($post->apply_elsewhere)

{{ t('How to apply') }}

{!! parseDown($post->apply_to) !!} @else

{!! Form::open(['url'=>route('posts.apply', ['id' => $post->id, 'slug' => $post->slug]),'files'=> true,'role'=>'form']) !!}
{!! Form::label('name', t('Name')) !!}* {!! Form::text('name',null,array('class'=>'form-control','id'=>'username','placeholder'=> t('Name'), 'required')) !!}
{!! Form::label('email', t('Email address')) !!}* {!! Form::text('email',null,array('class'=>'form-control','id'=>'username','placeholder'=> t('Email address'), 'required')) !!}
{!! Form::label('phone', t('Phone')) !!}* {!! Form::text('phone',null,array('class'=>'form-control','id'=>'username','placeholder'=> t('Phone'), 'required')) !!}
{!! Form::label('resume', t('Resume')) !!}* {{ t('Max size') }} {{ maxApplyFileUploadSize() }}MB {!! Form::file('resume',['accept'=>'*/*']) !!}
{!! Recaptcha::render() !!}
{!! Form::submit(t('Submit Application'), ['class' => 'btn btn-info btn-lg btn-block']) !!}
{!! Form::close() !!}
@endif