@component('emails.layouts.html', ['locale' => app()->getLocale(), 'subject' => match($contact['context'] ?? 'contact') { 'report-issue' => __('Copy of Your Issue Report'), 'report-error' => __('Copy of Your Error Report'), 'delete-profile' => __('Copy of Your Profile Deletion Request'), default => __('Copy of Your Contact Form Submission'), }]) {{-- Greeting --}}

{{ __('Hello') }} {{ explode(' ', $contact['full_name'])[0] }},

{{-- Main message --}}

{{ __('This is a copy of your :type submitted to :site:', [ 'type' => match($contact['context'] ?? 'contact') { 'report-issue' => __('issue report'), 'report-error' => __('error report'), 'delete-profile' => __('profile deletion request'), default => __('message'), }, 'site' => config('app.name') ]) }}

{{-- Contact Information --}} @if(!empty($contact['subject'])) @endif @if(!empty($contact['url'])) @endif
{{ __('Your name') }}: {{ $contact['name'] == $contact['full_name'] ? $contact['name'] : $contact['name'] . ' (' . $contact['full_name'] .')' }}
{{ __('Your email') }}: {{ $contact['email'] }}
{{ __('Subject') }}: {{ $contact['subject'] }}
{{ __('Page URL') }}: {{ $contact['url'] }}
{{-- Message content panel --}}

{{ __('Your message') }}:

{{ $contact['message'] }}

{{-- Confirmation message --}}

@if(($contact['context'] ?? 'contact') === 'delete-profile') {{ __('We have received your profile deletion request and will review it according to our data retention policies. You will be contacted regarding the next steps.') }} @else {{ __('We have received your message and will get back to you as soon as possible.') }} @endif

{{-- Closing --}} @if(!in_array(($contact['context'] ?? 'contact'), ['delete-profile', 'report-error', 'report-issue']))

{{ timebank_config('mail.platform_sign_off_signature.' . app()->getLocale()) ?? timebank_config('mail.platform_sign_off_signature.en', 'See you around!') }}

@endif {{-- Subcopy --}}

{{ __('This is an automated confirmation that your message was successfully submitted through the contact form.') }}

@endcomponent