ldc-nature-and-respect/resources/views/fo/pages/contact.blade.php
2023-05-04 12:28:19 +02:00

115 lines
4.2 KiB
PHP

@extends('fo.layout-frame')
@section('title', 'Kontakt' )
@section('content')
<!-- Header -->
<!-- Breadcrumb -->
<div class="container mx-auto max-w-7xl hidden">
<ul class="px-4 sm:px-8 py-4 md:py-8 text-braun text-small md:text-size-17">
<li class="inline-block pr-1 after:content-['/'] after:pl-1"><a href="" class="hover:underline">{{ __('Homepage') }}</a></li>
<li class="inline-block font-bold font-robotobold">{{ __('Contact Us') }}</li>
</ul>
</div>
<div class="w-full bg-hellgruen text-weiss py-16 mb-24">
<div class="container max-w-7xl mx-auto px-4 sm:px-8">
<div class="w-full mb-12">
<h1 class="text-h1-md lg:text-h1-lg xl:text-h1 font-scarletwood mt-3 text-weiss">{{ __('Your message') }}</h1>
</div>
@if(Session::has('success'))
<div class="alert alert-success">
<p class="mr-10 pb-3 font-semibold">{{ Session::get('success') }}</p>
</div>
@else
<form method="POST" action="{{ route('contact-form.send') }}" class="sm:grid sm:grid-cols-3 sm:gap-4" xnovalidate>
@csrf
<div class="mb-6">
<input type="text" id="vorname" name="vorname" class="input bordered white placeholder-weiss bg-hellgruen block w-full px-3 py-2" placeholder="{{ __('First name') }}*" required>
@if ($errors->has('vorname'))
<div class="mb-6">
<span class="text-danger">{{ $errors->first('vorname') }}</span>
</div>
@endif
</div>
<div class="mb-6">
<input type="text" id="nachname" name="nachname" class="input bordered white placeholder-weiss bg-hellgruen block w-full px-3 py-2" placeholder="{{ __('Last name') }}*" required>
@if ($errors->has('nachname'))
<div class="mb-6">
<span class="text-danger">{{ $errors->first('nachname') }}</span>
</div>
@endif
</div>
<div class="mb-6">
<input type="email" id="email" name="email" class="input bordered white placeholder-weiss bg-hellgruen block w-full px-3 py-2" placeholder="{{ __('E-Mail') }}*" required>
@if ($errors->has('email'))
<div class="mb-6">
<span class="text-danger">{{ $errors->first('email') }}</span>
</div>
@endif
</div>
<div class="mb-6 sm:col-span-2">
<textarea id="nachricht" name="nachricht" class="input bordered2 white placeholder-weiss bg-hellgruen block w-full min-h-[100px] px-6 py-4" placeholder="{{ __('Your message') }}*" required></textarea>
</div>
@if ($errors->has('nachricht'))
<div class="mb-6">
<span class="text-danger">{{ $errors->first('nachricht') }}</span>
</div>
@endif
<div class="mb-2 sm:col-span-3 text-sm">
<p>{{ __('The information you provide to us will be collected and processed by LDC Sablé. LDC Sablé is responsible for processing it in accordance with the purposes set out in our confidentiality charter. This information is intended for LDC Sablé staff and may be shared with their service providers. You may withdraw your consent at any time. For more information about your personal data and your rights, please refer to our Confidentiality Charter.') }}</p>
</div>
<div class="mb-6 sm:col-span-3">
<div class="check-standard text-sm mt-2 mr-6">
<label for="datenschutz" class="cursor-pointer text-weiss">
<input type="checkbox" id="datenschutz" name="datenschutz" class="hidden">
<span class="">
{{ __('I authorise LDC Sablé to process my personal data in accordance with the') }} <a href="{{ route('privacy') }}" class="hover:underline">{{ __('Privacy policy') }}</a> {{ __('to process.') }} *
</span>
</label>
</div>
</div>
@if ($errors->has('datenschutz'))
<div class="mb-6">
<span class="text-danger">{{ $errors->first('datenschutz') }}</span>
</div>
@endif
<div class="mb-6 sm:col-span-3">
<p>*{{ __('Required fields') }}</p>
</div>
<button type="submit" class="button brown inline items-center px-4 my-2 mt-2 mr-6 text-sm text-white w-40 uppercase">{{ __('Send') }}</button>
</form>
@php
Session::forget('success');
@endphp
@endif
</div>
</div>
@endsection