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

{{ match($contact['context'] ?? 'contact') { 'report-issue' => __('Issue Report'), 'report-error' => __('Error Report'), 'delete-profile' => __('Profile Deletion Request'), default => __('Contact Form Submission'), } }}

{{-- Main message --}}

{{ __('You have received a new :type from :site:', [ 'type' => match($contact['context'] ?? 'contact') { 'report-issue' => __('issue report'), 'report-error' => __('error report'), 'delete-profile' => __('profile deletion request'), default => __('contact form submission'), }, 'site' => config('app.name') ]) }}

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

{{ __('Message') }}:

{{ $contact['message'] }}

{{-- Action Required for delete-profile --}} @if(($contact['context'] ?? 'contact') === 'delete-profile')

{{ __('Action Required') }}: {{ __('This user has requested profile deletion. Please review and process according to your data retention policies.') }}

@endif {{-- View Profile Button --}} @if(!empty($contact['is_authenticated']) && !empty($contact['profile_url'])) @endif {{-- Subcopy --}}

{{ __('This is an automated message from the contact form on :site.', ['site' => config('app.name')]) }}

@endcomponent