@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", ])
@include('admin.components.form.input',[ 'label' => __("Host*"), 'name' => 'host', 'value' => old('host',$email_config->host ?? ""), ])
@include('admin.components.form.input',[ 'label' => __("Port*"), 'name' => 'port', 'type' => 'number', 'value' => old('port',$email_config->port ?? ""), ])
@include('admin.components.form.switcher',[ 'label' => __("Encryption*"), 'name' => 'encryption', 'options' => ['SSL' => "ssl",'TLS' => "tls"], 'value' => old('encryption',$email_config->encryption ?? ""), ])
@include('admin.components.form.input',[ 'label' => __(__("Username")."*"), 'name' => 'username', 'value' => old('username',$email_config->username ?? ""), ])
@include('admin.components.form.input-password',[ 'label' => __("password"), 'placeholder' => __("password"), 'name' => 'password', 'value' => old('password',$email_config->password ?? ""), ])
@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