@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']; } } @endphp
Name: {{$name}}
Email: {{$email}}
Workspace: {{$workspace_name}}
@if(isset($password))Password: {{$password}}
(We recommend changing this password after your first login)
@endif🎯 Demo Data Imported: We've pre-populated your workspace with sample data to help you get started quickly!
Your workspace now includes sample clients, employees, projects, sites, and other essential data to help you understand how the system works.
🔗 Quick Access: Use the login button below to access your account.
Save your login credentials in a secure location for future reference.
Your account has been successfully created. 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 AccountIf you have any questions or need assistance, feel free to contact our support team.
Important: Please keep your login credentials secure and do not share them with anyone.
Thank you,
{{ $companyName }} Team