@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
🔔 New Demo Request Received
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) @else @endif
🕒 Submitted: {{ $submitted_at ?? now()->format('M d, Y \a\t g:i A') }}
Customer: {{ $first_name }} {{ $last_name }} from {{ $company_name }}
Contact: {{ $work_email }} | {{ $phone }}
Company Details: {{ $company_type }} company with {{ $company_size ?? 'N/A' }} employees
⚡ Action Required: Please contact this customer within 24-48 hours to schedule their personalized demo. This is a high-priority lead that requires prompt follow-up.
📧 Reply To: {{ $work_email }}
📞 Contact Number: {{ $phone }}
💡 Tip: Reach out to schedule a demo at their convenience. They have expressed interest in learning more about our platform.
This demo request has been automatically logged in your system for tracking and follow-up purposes.
Best regards,
{{ $companyName }} Demo Request System
✅ Your Demo Request Has Been Received
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
🕒 Submitted: {{ $submitted_at ?? now()->format('M d, Y \a\t g:i A') }}
1. Review: Our team will review your demo request
2. Contact: We'll reach out to you within 24-48 hours
3. Schedule: We'll work with you to find the perfect time for your personalized demo
4. Demo: Experience our platform tailored to your needs
⏰ Expected Response Time: We typically respond within 24-48 hours during business days.
📧 Response Email: Our reply will be sent to {{ $work_email }}
📞 Need Immediate Help?: For urgent matters, please call us at {{ $companyPhone }}
Our dedicated sales team has been notified about your demo request and will get back to you as soon as possible. We're excited to show you how {{ $companyName }} can help your business grow!
If you have any questions or need to modify your demo request, please feel free to contact us directly.
Thank you for choosing {{ $companyName }},
Sales Team