ldc-agis/resources/views/fo/pages/contact.blade.php
2023-10-27 11:41:57 +02:00

225 lines
17 KiB
PHP

@extends('fo.layout')
@section('title', $contactModel->seo_title ?? __('Contact'))
@section('description', $contactModel->seo_description ?? __('Contactez-nous !'))
@section('breadcrumb',
request()->route()->getName())
@section('content')
<section class="contact">
<div class="container">
<div class="row">
<div class="col-12">
<span class="divide d-block w-100 mt-xl-3 my-2"></span>
<h1 class="f-sheldon text-uppercase my-3 text-center">{{ $contactModel->title }}</h1>
<span class="divide d-block w-100 mt-xl-3 my-2"></span>
</div>
<div class="col-12">
<p class="text-capitalize m-0 text-center">{{ __('siège social agis') }}</p>
<p class="text-capitalize m-0 text-center">{{ __('802 rue sainte-geneviève') }}</p>
<p class="text-capitalize m-0 text-center">{{ __('84000 avignon') }}</p>
<p class="text-capitalize m-0 text-center">{{ __('t. +33 (0)1 4 90 80 99') }}</p>
</div>
</div>
</div>
<form method="POST" action="{{ route('fo.contact.store') }}" enctype="multipart/form-data">
@method('POST')
@csrf
<div class="bg-agis-yellow mb-md-5 pb-md-5 m-0 p-0">
<div class="container">
<div class="position-relative px-md-0 mt-5 px-2 py-5">
<p
class="position-absolute start-50 translate-middle f-readex-pro highlight black top-0 m-0 w-fit px-5 text-center text-white">
{{ __('Formulaire de contact') }}</p>
<div class="row w-100 mx-auto">
<div class="col-12 col-md-6 p-0">
<div class="h-100 me-md-5 position-relative">
<fieldset class="select-form d-flex flex-column justify-content-end align-items-start h-100">
<select class="form-control text-capitalize" name="civility" role="button">
<option class="text-capitalize" disabled selected>{{ __('validation.custom.civility') }}</option>
@foreach (\App\Enums\Contact\CivilityEnum::toArray() as $key => $enumObject)
<option class="text-capitalize" value="{{ $enumObject->value }}"
@if (old('civility') == $key) selected @endif>
{{ $enumObject->label }}
</option>
@endforeach
</select>
</fieldset>
</div>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.last_name'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="last_name" value="{{ old('last_name') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.first_name'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="first_name" value="{{ old('first_name') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1">{{ Str::of(__('validation.custom.society'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="society" value="{{ old('society') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.email'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="email" value="{{ old('email') }}" required>
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.phone'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="phone" type="number" value="{{ old('phone') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.address'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="address" value="{{ old('address') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.postal_code'))->ucFirst() }}&nbsp;:</label>
<input class="form-control" name="postal_code" type="number" value="{{ old('postal_code') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1">{{ Str::of(__('validation.attributes.city'))->ucFirst()->value() }}&nbsp;:</label>
<input class="form-control" name="city" value="{{ old('city') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<div class="ms-md-5 position-relative pt-md-0 h-100 pt-4">
<fieldset class="select-form d-flex flex-column justify-content-end align-items-start h-100">
<select class="form-control text-capitalize" name="object" role="button">
<option class="text-capitalize" disabled selected>{{ __('validation.custom.object') }}</option>
@foreach (\App\Enums\Contact\ObjectEnum::toArray() as $key => $enumObject)
<option class="text-capitalize" value="{{ $enumObject->value }}"
@if (old('object') === $key) selected @endif>
{{ $enumObject->label }}
</option>
@endforeach
</select>
</fieldset>
</div>
</div>
<div class="contact-products-input row mx-auto p-0">
<p class="highlight black m-0 mx-auto my-5 w-fit px-5 text-center text-white">
{{ Str::of(__('pour pouvoir vous répondre nous avons besoin de quelques informations :'))->ucFirst()->value() }}
</p>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1" for="product_name">
{{ Str::of(__('validation.custom.product_name'))->ucFirst()->value() }}*&nbsp;:
</label>
<input class="form-control" id="product_name" name="product_name" value="{{ old('product_name') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1" for="product_date_limit">
{{ Str::of(__('validation.custom.product_date_limit'))->ucFirst()->value() }}*&nbsp;:
</label>
<input class="form-control" id="product_date_limit" name="product_date_limit"
value="{{ old('product_date_limit') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1" for="product_barcode">
{{ Str::of(__('validation.custom.product_barcode'))->ucFirst()->value() }}*&nbsp;:
</label>
<input class="form-control" id="product_barcode" name="product_barcode" type="number"
value="{{ old('product_barcode') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1" for="product_lot">
{{ Str::of(__('validation.custom.product_lot'))->ucFirst()->value() }}*&nbsp;:
</label>
<input class="form-control" id="product_lot" name="product_lot" type="number"
value="{{ old('product_lot') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start pe-md-5">
<label class="mt-1" for="product_date_consumption">
{{ Str::of(__('validation.custom.product_date_consumption'))->ucFirst()->value() }}*&nbsp;:
<span class="text-body-secondary">{{ __('Ex : 25/08/2028') }}</span>
</label>
<input class="form-control" id="product_date_consumption" name="product_date_consumption"
value="{{ old('product_date_consumption') }}">
</fieldset>
</div>
<div class="col-12 col-md-6 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start ps-md-5">
<label class="mt-1" for="product_location">
{{ Str::of(__('validation.custom.product_location'))->ucFirst()->value() }}*&nbsp;:
</label>
<input class="form-control" id="product_location" name="product_location"
value="{{ old('product_location') }}">
</fieldset>
</div>
<div class="col-12 my-5 p-0">
<fieldset class="row">
<div class="col-12 col-md-6 pe-md-5">
<label class="mt-1" for="file">
{{ Str::of(__('souhaitez-vous joindre une photo ?'))->ucFirst()->value() }}
</label>
<span
class="text-body-secondary">{{ Str::of(__('formats acceptés : jpg, png'))->ucFirst()->value() }}</span>
</div>
<div class="col-12 col-md-6 ps-md-5">
<input class="form-control" id ="file" name="file" type="file"
value="{{ old('file') }}" role="button" accept="image/*">
</div>
</fieldset>
</div>
</div>
<div class="col-12 mb-5 p-0">
<fieldset class="d-flex flex-column justify-content-center align-items-start">
<label class="mt-1" for="message">
{{ Str::of(__('message'))->ucFirst()->value() }}&nbsp;:
</label>
<textarea class="form-control" id="message" name="message" rows="6">{{ old('message') }}</textarea>
</fieldset>
</div>
<div class="col-12 mb-1 p-0">
<fieldset class="d-flex justify-content-start align-items-start align-items-md-center flex-row">
<input class="form-check-input rounded-0 mt-2 p-3" id="accept_rules" name="accept_rules" type="checkbox"
value="{{ old('accept_rules') }}" role="button" required>
<label class="ms-2 mt-1" for="accept_rules" role="button">
{{ Str::of(__('j\'ai lu et j\'accepte la politique de confidentialité de ce site.'))->ucFirst()->value() }}&nbsp;:
<a href="{{ route('fo.legals.show') }}" target="_blank">{{ __('Voir nos mentions légales') }}</a>
</label>
</fieldset>
</div>
<div class="col-12 mb-1 p-0">
<fieldset class="d-flex justify-content-start align-items-start align-items-md-center flex-row">
<input class="form-check-input rounded-0 mt-2 p-3" id="send_data" name="send_data" type="checkbox"
value="{{ old('send_data') }}" role="button" required>
<label class="ms-2 mt-1" for="send_data" role="button">
{{ Str::of(__('j\'autorise Agis à enregistrer mes données à fin de traiter ma demande'))->ucFirst()->value() }}&nbsp;:
</label>
</fieldset>
</div>
<p>{{ __('*Champ obligatoire') }}</p>
</div>
</div>
<button class="btn btn-primary d-none d-md-block w-100 text-capitalize" type="submit">{{ __('envoyer') }}</button>
</div>
</div>
<div class="px-3">
<button class="btn btn-primary d-block d-md-none w-100 mb-5 mt-3" type="submit">{{ __('envoyer') }}</button>
</div>
</form>
</section>
@endsection