86 lines
2.5 KiB
PHP
86 lines
2.5 KiB
PHP
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
<title>{{ ucfirst($data->enumType->label()) }} - LDC</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
</head>
|
|
|
|
<body>
|
|
<p>Prénom : {{ $data->firstname }}</p>
|
|
<p>Nom : {{ $data->lastname }}</p>
|
|
<p>Email : {{ $data->email }}</p>
|
|
|
|
@if (isset($data->town))
|
|
<p>Ville : {{ $data->town }}</p>
|
|
@endif
|
|
|
|
@if (isset($data->postalcode))
|
|
<p>Code Postal : {{ $data->postalcode }}</p>
|
|
@endif
|
|
|
|
@if (isset($data->country))
|
|
<p>Pays : {{ $data->country }}</p>
|
|
@endif
|
|
|
|
@if (isset($data->phone))
|
|
<p>Téléphone : {{ $data->phone }}</p>
|
|
@endif
|
|
|
|
{{-- BREEDER --}}
|
|
@if (\App\Enums\Contact\ContactFormType::breeder->equals($data->enumType))
|
|
@if (is_iterable($data->typeelevage))
|
|
<p>Type d'élevage : </p>
|
|
<ul>
|
|
@foreach ($data->typeelevage as $breeding)
|
|
<li>{{ $breeding->label() }}</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
|
|
@if (is_iterable($data->zonegeo))
|
|
<p>Zone géographique : </p>
|
|
<ul>
|
|
@foreach ($data->zonegeo as $zone)
|
|
<li>{{ $zone->label() }}</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
@endif
|
|
|
|
{{-- Restauration, Détaillant --}}
|
|
@if (\App\Enums\Contact\ContactFormType::restauration->equals($data->enumType))
|
|
<p>Société : {{ $data->company }}</p>
|
|
@endif
|
|
|
|
@if (is_iterable($data->type) && \App\Enums\Contact\ContactFormType::restauration->equals($data->enumType))
|
|
<p>Type de demande : </p>
|
|
<ul>
|
|
@foreach ($data->type as $t)
|
|
<li>{{ $t->label() }}</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
|
|
{{-- Export --}}
|
|
@if (is_iterable($data->typeExport) && \App\Enums\Contact\ContactFormType::export->equals($data->enumType) && $data->typeExport)
|
|
<p>Type de demande : </p>
|
|
<ul>
|
|
@foreach ($data->typeExport as $t)
|
|
<li>{{ $t->label() }}</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
|
|
{{-- PRESS --}}
|
|
@if (\App\Enums\Contact\ContactFormType::press->equals($data->enumType))
|
|
<p>Sujet : {{ $data->subject->label() }}</p>
|
|
@endif
|
|
|
|
|
|
{{-- MESSAGE --}}
|
|
<p>Message : {{ $data->message }}</p>
|
|
</body>
|
|
|
|
</html>
|