@php $client_sending_servers = \App\Http\Helper\Helper::getClientAttributeValue(\Auth::user()->app_id, 'sending_server_ids') @endphp
@if($popup)
@else
@push('styles')
@endpush
@push('scripts')
@endpush
@endif
@php
$type_labels = [
'smtp' => 'SMTP', 'gmail' => 'Gmail', 'microsoft' => 'Outlook', 'php_mail' => 'PHP Mail',
'sendgrid_api' => 'SendGrid', 'mailgun_api' => 'Mailgun', 'sparkpost_api' => 'SparkPost',
'amazon_ses_api' => 'Amazon SES', 'elastic_email_api' => 'Elastic Email', 'postal_api' => 'Postal'
];
$serverOptionText = function($server) use ($type_labels) {
$type = $type_labels[$server->type] ?? $server->type;
$label = $server->name . ' (' . $type . ')';
if ($server->status != 'Active') {
$label .= ' — ' . __('app.inactive');
}
return $label;
};
@endphp
@if(isset($required) && $required)
{{__('app.sending_server_required')}}
@endif