@extends('layouts.frontend')

@section('title', __('labels.frontend.titles.contact'))

@section('body_class', 'page-contact')

@section('content')

    <div class="row">
        <div class="col-md-6">
            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d317718.69319292053!2d-0.3817765050863085!3d51.528307984912544!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47d8a00baf21de75%3A0x52963a5addd52a99!2sLondres%2C+Royaume-Uni!5e0!3m2!1sfr!2sfr!4v1496781964517"
                    height="550" frameborder="0" allowfullscreen></iframe>
        </div>
        <div class="col-md-6">
            <form action="{{ route('contact') }}" method="POST">
                @csrf

                <div class="form-group">
                    <label for="name">@lang('validation.attributes.name')</label>
                    {{ Form::bsText('name', null, ['required', 'placeholder' => __('validation.attributes.name')]) }}
                </div>

                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="postal_code">@lang('validation.attributes.postal_code')</label>
                            {{ Form::bsText('postal_code', null, ['placeholder' => __('validation.attributes.postal_code')]) }}
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="city">@lang('validation.attributes.city')</label>
                            {{ Form::bsText('city', null, ['placeholder' => __('validation.attributes.city')]) }}
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="email">@lang('validation.attributes.email')</label>
                            {{ Form::bsEmail('email', null, ['required', 'placeholder' => __('validation.attributes.email')]) }}
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="phone">@lang('validation.attributes.phone')</label>
                            {{ Form::bsTel('phone', null, ['placeholder' => __('validation.attributes.phone')]) }}
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label for="message">@lang('validation.attributes.message')</label>
                    {{ Form::bsTextarea('message', null, ['required', 'placeholder' => __('validation.attributes.message'), 'rows' => 5]) }}
                </div>

                <div class="form-group">
                    {!! Form::captcha() !!}
                </div>

                <div class="form-group">
                    <input type="submit" class="btn btn-primary" value="@lang('buttons.send')">
                </div>
            </form>
        </div>
    </div>
@endsection

@push('scripts')
    {!! Captcha::script() !!}
@endpush
