@extends('frontend.layouts.app') @section('title', app_name() . ' | ' . __('labels.frontend.contact.box_title')) @section('content')
@lang('labels.frontend.contact.box_title')
{{ html()->form('POST', route('frontend.contact.send'))->open() }}
{{ html()->label(__('validation.attributes.frontend.name'))->for('name') }} {{ html()->text('name', optional(auth()->user())->name) ->class('form-control') ->placeholder(__('validation.attributes.frontend.name')) ->attribute('maxlength', 191) ->required() ->autofocus() }}
{{ html()->label(__('validation.attributes.frontend.email'))->for('email') }} {{ html()->email('email', optional(auth()->user())->email) ->class('form-control') ->placeholder(__('validation.attributes.frontend.email')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('validation.attributes.frontend.phone'))->for('phone') }} {{ html()->text('phone') ->class('form-control') ->placeholder(__('validation.attributes.frontend.phone')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('validation.attributes.frontend.message'))->for('message') }} {{ html()->textarea('message') ->class('form-control') ->placeholder(__('validation.attributes.frontend.message')) ->attribute('rows', 3) ->required() }}
@if(config('access.captcha.contact'))
@captcha {{ html()->hidden('captcha_status', 'true') }}
@endif
{{ form_submit(__('labels.frontend.contact.button')) }}
{{ html()->form()->close() }}
@endsection @push('after-scripts') @if(config('access.captcha.contact')) @captchaScripts @endif @endpush