@php use Illuminate\Support\Facades\DB; use App\Models\User; $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; } // Define color theme based on account status if ($status == 'enabled') { $themeColor = '#22C55E'; // Green $themeBackground = 'linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%)'; $themeIcon = '✅'; $message = 'Your account has been activated. You can now log in using your credentials.'; } else { $themeColor = '#EF4444'; // Red $themeBackground = 'linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%)'; $themeIcon = '🔒'; $message = 'Your account access has been temporarily disabled. You cannot log in at this time.'; } // Get logo path if available @endphp
{{ $message }}
Email: {{ $email }}
Status: {{ ucfirst($status) }}
Your account has been enabled by an administrator. You can now access all features and services available to your account.
Login to Your AccountIf you have any questions about your account or need assistance, our support team is here to help.
@elseYour account access has been temporarily disabled by an administrator. During this time, you will not be able to log in to the system or access any services.
If you believe this is an error or have questions about why your account was disabled, please contact our support team for assistance.
@endifThank you,
{{ $companyName }} Team