@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if ($configError)
Setup required
{{ $configError }}
CPANEL_HOST=yourdomain.com
CPANEL_PORT=2083
CPANEL_WEBMAIL_PORT=2096
CPANEL_USERNAME=your_cpanel_username
CPANEL_API_TOKEN=your_api_token
CPANEL_DOMAIN=yourdomain.com
@endif
Add New Email
Example: info or info@{{ $domain ?: 'yourdomain.com' }}
| Email |
Usage |
Quota |
Action |
@forelse($accounts as $account)
@php
$rawEmail = $account['email'] ?? (($account['user'] ?? '') . '@' . ($account['domain'] ?? $domain));
$rawEmail = strtolower(trim($rawEmail));
$configuredDomain = strtolower(trim($domain));
if ($configuredDomain && str_ends_with($rawEmail, '@' . $configuredDomain)) {
$email = strstr($rawEmail, '@', true) . '@' . $configuredDomain;
} else {
$email = $rawEmail;
}
$diskUsed = $account['diskused'] ?? $account['humandiskused'] ?? '—';
$quota = $account['diskquota'] ?? $account['humandiskquota'] ?? '—';
@endphp
|
{{ $email }}
|
{{ $diskUsed }} |
{{ $quota }} |
|
@empty
|
No mailboxes found, or cPanel is not configured yet.
|
@endforelse
Set New Mailbox Password
Use this when the mailbox password is forgotten.