@extends("client.layouts.app")
@section("title", __('client.hosting.email.title'))
@section("content")
{{ $service->product?->name ?? __('client.services.title') }}
{{ __('client.hosting.email.title') }} {{ __('client.hosting.email.subtitle') }}
@if(empty($domains))
{{ __('client.hosting.email.no_domains') }}
@else
{{ __('client.hosting.email.create_title') }}
@error('local_part')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@endif
{{ __('client.hosting.email.accounts_title') }}
@if(empty($emails))
{{ __('client.hosting.email.empty') }}
@else
{{ __('client.hosting.email.address') }} {{ __('client.hosting.email.usage') }} {{ __('common.table.status') }} {{ __('common.table.actions') }}
@foreach($emails as $mail)
@php($on = strtolower($mail['status']) === 'active')
{{ $mail['email'] }}
{{ number_format($mail['used_mb']) }} @if($mail['quota_mb'] > 0)/ {{ number_format($mail['quota_mb']) }} MB @else/ {{ __('client.hosting.email.unlimited') }} @endif
{{ $mail['status'] ?: '-' }}
{{ __('client.hosting.email.change_password') }}
@endforeach
@endif
@if(!empty($mailDns))
{{-- The mail certificate could not be issued: the domain's DNS is elsewhere
and these names do not point at the server yet. --}}
{{ __('client.hosting.email.dns_title') }}
{{ __('client.hosting.email.dns_note', ['host' => $mailDns['host']]) }}
{{ __('client.hosting.email.dns_name') }} {{ __('client.hosting.email.dns_type') }} {{ __('client.hosting.email.dns_value') }}
@foreach($mailDns['records'] as $rec)
{{ $rec['name'] }}
{{ $rec['type'] }}
{{ $rec['value'] }}
@endforeach
{{ __('client.hosting.email.dns_after') }}
@endif
@if(!empty($mailHost))
{{-- Mail client settings. This was the most common support request: the
customer created the mailbox and then did not know what to type into
Outlook. --}}
{{ __('client.hosting.email.settings_title') }}
{{ __('client.hosting.email.settings_note') }}
{{ __('client.hosting.email.settings_purpose') }}
{{ __('client.hosting.email.settings_server') }}
{{ __('client.hosting.email.settings_port') }}
{{ __('client.hosting.email.settings_security') }}
@foreach([
['IMAP', __('client.hosting.email.settings_incoming_recommended'), '993', 'SSL/TLS'],
['POP3', __('client.hosting.email.settings_incoming_alt'), '995', 'SSL/TLS'],
['SMTP', __('client.hosting.email.settings_outgoing'), '465', 'SSL/TLS'],
['SMTP', __('client.hosting.email.settings_outgoing_alt'), '587', 'STARTTLS'],
] as [$proto, $label, $port, $sec])
{{ $proto }}{{ $label }}
{{ $mailHost }}
{{ $port }}
{{ $sec }}
@endforeach
@endif
@endsection