@php use App\Services\CompanyEmailDetails; // Ensure customer_id is available $customer_id = $customer_id ?? null; $companyDetails = CompanyEmailDetails::getCompanyEmailDetails($customer_id); // Extract variables for easier use in template $logoPath = $companyDetails['logoPath']; $companyName = $companyDetails['companyName']; $companyAddress = $companyDetails['companyAddress']; $companyCity = $companyDetails['companyCity']; $companyState = $companyDetails['companyState']; $companyPostCode = $companyDetails['companyPostCode']; $companyCountry = $companyDetails['companyCountry']; $companyPhone = $companyDetails['companyPhone']; $companyEmail = $companyDetails['companyEmail']; // 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; } @endphp
{{ isset($password) && $password ? 'Your account has been created successfully' : 'Your account has been associated successfully' }}
Hi {{ $name }},
@if (isset($password) && $password)
Your account has been created successfully. You can now log in to access our services and features.
@else
Your account has been associated with {{ $companyName }}. You can now log in to access our services and features using your existing credentials.
@endif
| Name | {{ $name }} |
| {{ $email }} | |
| Password | {{ $password }} |
| Company Name | {{ $company_name }} |
| Workspace | {{ $workspace_name }} |
| Account Status | Active |
| Account Type | Subcontractor |
| Created Date | {{ date('M d, Y') }} |
|
|
Quick AccessUse the login button below to access your account. @if (isset($password) && $password) Save your login credentials in a secure location for future reference. @elseUse your existing credentials to log in to the web portal. @endif |
Your account has been successfully {{ isset($password) && $password ? 'created' : 'associated' }} with {{ $company_name }}. You can now log in to access our services and features.
To get started, please click the button below to log in to your account:
Login to Your Account
If you have any questions or need assistance, feel free to contact our support team.
@if (isset($password) && $password)
Important: Please keep your login credentials secure and do not share them with anyone.
@else
Note: Please use your existing login credentials to access your account. Your password remains unchanged.
@endif
Thank you,
{{ $companyName }} Team