@php use Illuminate\Support\Facades\DB; use App\Models\User; // Default values $logoPath = null; $companyName = env('APP_NAME', 'WMS'); $companyAddress = ''; $companyCity = ''; $companyState = ''; $companyPostCode = ''; $companyCountry = ''; $companyPhone = 'Contact Information'; $companyEmail = env('EMAIL_ADDRESS', 'support@example.com'); // Get admin settings data $admin = User::where('user_type', config('constants.user_types.admin'))->first(); if ($admin) { $settings = DB::table('adminsettings') ->where('customer_id', $admin->id) ->get(); // Transform into key-value pairs for easier access $settingsData = []; foreach ($settings as $setting) { $settingsData[$setting->key] = $setting->value; } // Get logo if (isset($settingsData['brand_logo_dark'])) { $logoPath = $settingsData['brand_logo_dark']; } // Get company information if (isset($settingsData['company_company_name'])) { $companyName = $settingsData['company_company_name']; } if (isset($settingsData['company_company_address'])) { $companyAddress = $settingsData['company_company_address']; } if (isset($settingsData['company_company_city'])) { $companyCity = $settingsData['company_company_city']; } if (isset($settingsData['company_company_state'])) { $companyState = $settingsData['company_company_state']; } if (isset($settingsData['company_company_post_code'])) { $companyPostCode = $settingsData['company_company_post_code']; } if (isset($settingsData['company_company_country'])) { $companyCountry = $settingsData['company_company_country']; } if (isset($settingsData['company_company_telephone'])) { $companyPhone = $settingsData['company_company_telephone']; } if (isset($settingsData['company_company_email'])) { $companyEmail = $settingsData['company_company_email']; } } // Format full address $fullAddress = $companyAddress; if (!empty($companyCity)) { $fullAddress .= ', ' . $companyCity; } if (!empty($companyState)) { $fullAddress .= ', ' . $companyState; } if (!empty($companyPostCode)) { $fullAddress .= ' ' . $companyPostCode; } if (!empty($companyCountry)) { $fullAddress .= ', ' . $companyCountry; } // Determine if this is for admin or user $isAdminEmail = isset($is_admin_notification) && $is_admin_notification; @endphp
A new demo request has been received.
Hi Admin,
A new demo request has been submitted through your website. Please review the details below and schedule a personalized demo for the customer.
| Name | {{ $first_name }} {{ $last_name }} |
| Work Email | {{ $work_email }} |
| Phone | {{ $phone }} |
| Company Name | {{ $company_name }} |
| Company Type | {{ $company_type }} |
| Company Size | {{ $company_size ?? 'N/A' }} employees |
| Email Consent | @if(isset($email_consent) && $email_consent) Yes @else No @endif |
| Submitted | {{ $submitted_at ?? now()->format('M d, Y \a\t g:i A') }} |
|
|
Action RequiredPlease contact this customer within 24-48 hours to schedule their personalized demo. This is a high-priority lead that requires prompt follow-up. |
This demo request has been automatically logged in your system for tracking and follow-up purposes. Please contact the customer within 24-48 hours to schedule their personalized demo.
Best regards,
{{ $companyName }} Demo Request System
Thank you for contacting us.
Hi {{ $first_name }},
Thank you for your interest in {{ $companyName }}! We have successfully received your demo request and our team will contact you shortly to schedule a personalized demo
| Name | {{ $first_name }} {{ $last_name }} |
| Work Email | {{ $work_email }} |
| Phone | {{ $phone }} |
| Company Name | {{ $company_name }} |
| Company Type | {{ $company_type }} |
| Company Size | {{ $company_size ?? 'N/A' }} employees |
| Email Consent | @if(isset($email_consent) && $email_consent) Yes @else No @endif |
| Submitted | {{ $submitted_at ?? now()->format('M d, Y \a\t g:i A') }} |
|
|
Response TimeWe typically respond within 24-48 hours during business days. |
Our dedicated customer support team has been notified about your inquiry and will get back to you as soon as possible. We appreciate your interest in {{ $companyName }} and look forward to assisting you.
If you need to add any additional information to your inquiry, please feel free to reply to this email or submit a new contact form on our website.
Thank you for choosing {{ $companyName }}
Sales Team