- {!! Former::select('mail[driver]')->label('Driver')->options(['smtp' => 'SMTP', 'mail' => 'Mail', 'sendmail' => 'Sendmail', 'mailgun' => 'Mailgun'])
+ {!! Former::select('mail[driver]')->label('driver')->options(['smtp' => 'SMTP', 'mail' => 'Mail', 'sendmail' => 'Sendmail', 'mailgun' => 'Mailgun'])
->value(isset($_ENV['MAIL_DRIVER']) ? $_ENV['MAIL_DRIVER'] : 'smtp')->setAttributes(['onchange' => 'mailDriverChange()']) !!}
- {!! Former::text('mail[from][name]')->label('From Name')
+ {!! Former::text('mail[from][name]')->label('from_name')
->value(isset($_ENV['MAIL_FROM_NAME']) ? $_ENV['MAIL_FROM_NAME'] : '') !!}
- {!! Former::text('mail[from][address]')->label('From Address')
+ {!! Former::text('mail[from][address]')->label('from_address')
->value(isset($_ENV['MAIL_FROM_ADDRESS']) ? $_ENV['MAIL_FROM_ADDRESS'] : '') !!}
- {!! Former::text('mail[username]')->label('Username')
+ {!! Former::text('mail[username]')->label('username')
->value(isset($_ENV['MAIL_USERNAME']) ? $_ENV['MAIL_USERNAME'] : '') !!}
- {!! Former::text('mail[host]')->label('Host')
+ {!! Former::text('mail[host]')->label('host')
->value(isset($_ENV['MAIL_HOST']) ? $_ENV['MAIL_HOST'] : '') !!}
- {!! Former::text('mail[port]')->label('Port')
+ {!! Former::text('mail[port]')->label('port')
->value(isset($_ENV['MAIL_PORT']) ? $_ENV['MAIL_PORT'] : '587') !!}
- {!! Former::select('mail[encryption]')->label('Encryption')
+ {!! Former::select('mail[encryption]')->label('encryption')
->options(['tls' => 'TLS', 'ssl' => 'SSL', '' => 'None'])
->value(isset($_ENV['MAIL_ENCRYPTION']) ? $_ENV['MAIL_ENCRYPTION'] : 'tls') !!}
- {!! Former::password('mail[password]')->label('Password')
+ {!! Former::password('mail[password]')->label('password')
->value(isset($_ENV['MAIL_PASSWORD']) ? $_ENV['MAIL_PASSWORD'] : '') !!}
- {!! Former::text('mail[mailgun_domain]')->label('Mailgun Domain')
+ {!! Former::text('mail[mailgun_domain]')->label('mailgun_domain')
->value(isset($_ENV['MAILGUN_DOMAIN']) ? $_ENV['MAILGUN_DOMAIN'] : '') !!}
- {!! Former::text('mail[mailgun_secret]')->label('Mailgun Private Key')
+ {!! Former::text('mail[mailgun_secret]')->label('mailgun_private_key')
->value(isset($_ENV['MAILGUN_SECRET']) ? $_ENV['MAILGUN_SECRET'] : '') !!}
- {!! Former::actions( Button::primary('Send test email')->small()->withAttributes(['onclick' => 'testMail()']), '
' ) !!}
+ {!! Former::actions( Button::primary(trans('texts.send_test_email'))->small()->withAttributes(['onclick' => 'testMail()']), '
' ) !!}