ldc-agis/resources/views/emails/send-contact-form.blade.php
2024-02-07 12:15:42 +01:00

41 lines
2.1 KiB
PHP

{{-- blade-formatter-disable --}}
@component('mail::message')
# Bonjour,
## Voici un message envoyé depuis le formulaire de la page "contact" du site web {{ config('app.name') }} :
### Information sur l'utilisateur:
@component('mail::panel')
- **{{ __('validation.custom.civility') }}:** {{ isset($data->civility) ? \App\Enums\Contact\CivilityEnum::make($data->civility)->label() : '' }}
- **{{ __('validation.attributes.first_name') }}:** {{ $data->first_name ?? '' }}
- **{{ __('validation.attributes.last_name') }}:** {{ $data->last_name ?? '' }}
- **{{ __('validation.custom.society') }}:** {{ $data->society ?? '' }}
- **{{ __('validation.attributes.email') }}:** {{ $data->email }}
- **{{ __('validation.attributes.phone') }}:** {{ $data->phone ?? '' }}
- **{{ __('validation.attributes.address') }}:** {{ $data->address ?? '' }}
- **{{ __('validation.attributes.postal_code') }}:** {{ $data->postal_code ?? '' }}
- **{{ __('validation.attributes.city') }}:** {{ $data->city ?? '' }}
- **{{ __('validation.custom.object') }}:** {{ \App\Enums\Contact\ObjectEnum::make($data->object)->label() }}
- **{{ __('validation.attributes.message') }}:** {{ $data->message }}
@endcomponent
@if (
!empty($data->product_name) ||
!empty($data->product_date_limit) ||
!empty($data->product_barcode) ||
!empty($data->product_lot) ||
!empty($data->product_date_consumption) ||
!empty($data->product_location))
### Information sur le produit:
@component('mail::panel')
- **{{ __('validation.custom.product_name') }}:** {{ $data->product_name ?? '' }}
- **{{ __('validation.custom.product_date_limit') }}:** {{ \Carbon\Carbon::make($data->product_date_limit)->format('d/m/Y') ?? '' }}
- **{{ __('validation.custom.product_barcode') }}:** {{ $data->product_barcode ?? '' }}
- **{{ __('validation.custom.product_lot') }}:** {{ $data->product_lot ?? '' }}
- **{{ __('validation.custom.product_date_consumption') }}:** {{ \Carbon\Carbon::make($data->product_date_consumption)->format('d/m/Y') ?? '' }}
- **{{ __('validation.custom.product_location') }}:** {{ $data->product_location ?? '' }}
@endcomponent
@endif
L'équipe {{ config('app.name') }}.
@endcomponent