{{ html()->form('POST', route('envSetting'))->attribute('data-toggle', 'validator')->open() }} {{ html()->hidden('id', null)->class('form-control') }} {{ html()->hidden('page', $page)->class('form-control') }} {{ html()->hidden('type', 'mail')->class('form-control') }}
@foreach(config('constant.MAIL_SETTING') as $key => $value)
@php $encryptedMailPassword = auth()->user()->hasRole('admin') ? base64_encode(openssl_encrypt($value, 'aes-256-cbc', 'your_encryption_key', 0, openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')))) : ''; @endphp @if(auth()->user()->hasRole('admin')) @else @endif
@endforeach
{{ html()->submit(__('messages.save'))->class('btn btn-md btn-primary float-md-end') }} {{ html()->form()->close() }}