{{--
    Actifisys (dnyActifisys) developed by Daniel Brendel

    (C) 2019 - 2023 by Daniel Brendel

    Version: 1.0
    Contact: dbrendel1988<at>gmail<dot>com
    GitHub: https://github.com/danielbrendel/

    Released under the MIT license
--}}

@extends('layouts.layout_home')

@section('title')
    {{ __('app.contact') }}
@endsection

@section('content')
    <div class="column is-2"></div>

    <div class="column is-8 is-default-padding fixed-form">
        <div class="has-text-centered info-headline"><h1>{{ __('app.contact') }}</h1></div>

        <div class="member-form is-default-padding">
            <form method="POST" action="{{ url('/contact') }}">
                @csrf

                <div class="field">
                    <label class="label">{{ __('app.contact_name') }}</label>
                    <div class="control">
                        <input type="text" name="name" value="{{ old('name') }}" required>
                    </div>
                </div>

                <div class="field">
                    <label class="label">{{ __('app.contact_email') }}</label>
                    <div class="control">
                        <input type="email" name="email" value="{{ old('email') }}" required>
                    </div>
                </div>

                <div class="field">
                    <label class="label">{{ __('app.contact_subject') }}</label>
                    <div class="control">
                        <input type="text" name="subject" value="{{ old('subject') }}" required>
                    </div>
                </div>

                <div class="field">
                    <label class="label">{{ __('app.contact_body') }}</label>
                    <div class="control">
                        <textarea name="body" required>{{ old('body') }}</textarea>
                    </div>
                </div>

                <div class="field">
                    <label class="label">{{ $captchadata[0] }} + {{ $captchadata[1] }} = ?</label>
                    <div class="control">
                        <input type="text" name="captcha" required>
                    </div>
                </div>

                <div class="field">
                    <div class="control">
                        <input type="submit" value="{{ __('app.submit') }}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="column is-2"></div>
@endsection
