@extends('admin.layouts.master') @push('css') @endpush @section('page-title') @include('admin.components.page-title',['title' => __($page_title)]) @endsection @section('breadcrumb') @include('admin.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("admin.dashboard"), ] ], 'active' => __("Setup Email")]) @endsection @section('content')
{{ __("Email Method") }}
@csrf @method("PUT")
@error("method") {{ $message }} @enderror
@include('admin.components.link.custom',[ 'class' => "btn--base modal-btn w-100", 'href' => "#test-mail", 'text' => __("Send Mail"), 'permission' => "admin.setup.email.test.mail.send", ])
{{-- credentials input fields START --}}
method) && $email_config->method != "smtp") style="display: none" @endif>
@include('admin.components.form.input',[ 'label' => __("Host"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'host', 'value' => old('host',$email_config->host ?? ""), ])
@include('admin.components.form.input',[ 'label' => __("Port"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'port', 'type' => 'number', 'value' => old('port',$email_config->port ?? ""), ])
@include('admin.components.form.switcher',[ 'label' => __("Encryption"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'encryption', 'options' => [__('SSL') => "ssl",__('TLS') => "tls"], 'value' => old('encryption',$email_config->encryption ?? ""), ])
@include('admin.components.form.input',[ 'label' => __("Username"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'username', 'value' => old('username',$email_config->username ?? ""), ])
@include('admin.components.form.input',[ 'label' => __('Mail From Address').'*', 'placeholder' => __('From Address') , 'name' => 'from_address', 'value' => old('from_address',$email_config->from ?? ""), ])
@include('admin.components.form.email-input-password',[ 'label' => __('Password'), 'label_after' => "*", 'placeholder' => __('Password') , 'name' => 'password', 'value' => old('password',$email_config->password ?? ""), ])
method) && $email_config->method != "mailgun") style="display: none" @endif>
@include('admin.components.form.input',[ 'label' => __("Host"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'mailgun_host', 'value' => old('mailgun_host',$email_config->host ?? ""), ])
@include('admin.components.form.input',[ 'label' => __("Port"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'mailgun_port', 'type' => 'number', 'value' => old('mailgun_port',$email_config->port ?? ""), ])
@include('admin.components.form.switcher',[ 'label' => __("Encryption"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'mailgun_encryption', 'options' => [__('SSL') => "ssl",__('TLS') => "tls"], 'value' => old('mailgun_encryption',$email_config->encryption ?? ""), ])
@include('admin.components.form.input',[ 'label' => __("Username"), 'label_after' => "*", 'placeholder' => __("Write Here").'...', 'name' => 'mailgun_username', 'value' => old('mailgun_username',$email_config->username ?? ""), ])
@include('admin.components.form.email-input-password',[ 'label' => __('Password'), 'label_after' => "*", 'placeholder' => __('Password') , 'name' => 'mailgun_password', 'value' => old('mailgun_password',$email_config->password ?? ""), ])
@include('admin.components.form.input',[ 'label' => __('Mail From Address').'*', 'placeholder' => __('From Address') , 'name' => 'mailgun_from_address', 'value' => old('mailgun_from_address',$email_config->from ?? ""), ])
@include('admin.components.form.input',[ 'label' => __('Mailgun Domain').'*', 'placeholder' => __('Mailgun Domain') , 'name' => 'mailgun_domain', 'value' => old('mailgun_domain',$email_config->domain ?? ""), ])
@include('admin.components.form.input',[ 'label' => __('Mailgun Secret').'*', 'placeholder' => __('Mailgun Secret') , 'name' => 'mailgun_secret', 'value' => old('mailgun_secret',$email_config->secret ?? ""), ])
{{-- credentials input fields END --}}
@include('admin.components.button.form-btn',[ 'class' => "w-100 btn-loading", 'text' => __("Update"), 'permission' => "admin.setup.email.config.update", ])
{{-- Test mail send modal --}} @include('admin.components.modals.send-text-mail') @endsection @push('script') @endpush