@extends('install.layouts.master') @section('title', trans('messages.configuration')) @section('content')
{!! csrf_field() !!}

{{ trans('messages.general') }}

@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'site_name', 'value' => $site_info['site_name'] ?? '', 'rules' => ["site_name" => "required"] ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'site_slogan', 'value' => $site_info['site_slogan'] ?? '', 'rules' => ["site_slogan" => "required"] ])

{{ trans('messages.admin_info') }}

@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'name', 'value' => $site_info['name'] ?? '', 'rules' => $rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'purchase_code', 'value' => "$key", 'hint' => trans('admin.find_my_purchase_code'), 'rules' => $rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'email', 'value' => $site_info['email'] ?? '', 'rules' => $rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'password', 'value' => $site_info['password'] ?? '', 'rules' => $rules ])
@include('install.helpers.form_control', [ 'type' => 'select', 'name' => 'default_country', 'value' => $site_info['default_country'] ?? \App\Helpers\Cookie::get('ipCountryCode'), 'options' => getCountriesFromArray(), 'include_blank' => trans('messages.choose'), 'rules' => $rules ])

{{ trans('messages.system_email_configuration') }}

@include('install.helpers.form_control', [ 'type' => 'select', 'name' => 'mail_driver', 'label' => trans('messages.mail_driver'), 'value' => $site_info['mail_driver'] ?? '', 'options' => [ ["value" => "sendmail", "text" => trans('messages.sendmail')], ["value" => "smtp", "text" => trans('messages.smtp')], ["value" => "mailgun", "text" => trans('messages.mailgun')], ["value" => "postmark", "text" => trans('messages.postmark')], ["value" => "ses", "text" => trans('messages.ses')], ["value" => "sparkpost", "text" => trans('messages.sparkpost')], ], 'rules' => $rules ])
@php $sendmailPath = '/usr/sbin/sendmail -bs'; @endphp @include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'sendmail_path', 'label' => trans('messages.sendmail_path'), 'value' => $site_info['sendmail_path'] ?? $sendmailPath, 'hint' => trans('admin.sendmail_path_hint'), 'rules' => $sendmail_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'smtp_hostname', 'label' => trans('messages.hostname'), 'value' => $site_info['smtp_hostname'] ?? '', 'rules' => $smtp_rules ]) @include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'smtp_username', 'label' => trans('messages.username'), 'value' => $site_info['smtp_username'] ?? '', 'rules' => $smtp_rules ]) @include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'smtp_encryption', 'label' => trans('messages.encryption'), 'value' => $site_info['smtp_encryption'] ?? '', 'rules' => $smtp_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'smtp_port', 'label' => trans('messages.port'), 'value' => $site_info['smtp_port'] ?? '', 'rules' => $smtp_rules ]) @include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'smtp_password', 'label' => trans('messages.password'), 'value' => $site_info['smtp_password'] ?? '', 'rules' => $smtp_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'mailgun_domain', 'label' => trans('messages.mailgun_domain'), 'value' => $site_info['mailgun_domain'] ?? '', 'rules' => $mailgun_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'mailgun_secret', 'label' => trans('messages.mailgun_secret'), 'value' => $site_info['mailgun_secret'] ?? '', 'rules' => $mailgun_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'postmark_token', 'label' => trans('messages.postmark_token'), 'value' => $site_info['postmark_token'] ?? '', 'rules' => $postmark_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'ses_key', 'label' => trans('messages.ses_key'), 'value' => $site_info['ses_key'] ?? '', 'rules' => $ses_rules ]) @include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'ses_secret', 'label' => trans('messages.ses_secret'), 'value' => $site_info['ses_secret'] ?? '', 'rules' => $ses_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'ses_region', 'label' => trans('messages.ses_region'), 'value' => $site_info['ses_region'] ?? '', 'rules' => $ses_rules ])
@include('install.helpers.form_control', [ 'type' => 'text', 'name' => 'sparkpost_secret', 'label' => trans('messages.sparkpost_secret'), 'value' => $site_info['sparkpost_secret'] ?? '', 'rules' => $sparkpost_rules ])

@endsection @section('after_scripts') @endsection