@extends('backend.layouts.app') @section('title', __('labels.backend.general_settings.newsletter.title').' | '.app_name()) @push('after-styles') @endpush @section('content') {{ html()->form('POST', route('admin.general-settings'))->id('general-settings-form')->class('form-horizontal')->acceptsFiles()->open() }}

@lang('labels.backend.general_settings.newsletter.title')

@lang('labels.backend.general_settings.mail_configuration_note',['link'=>''])
{{ html()->label(__('labels.backend.general_settings.newsletter.mail_provider'))->class('col-md-2 form-control-label')->for('short_description') }}

{{ html()->label(html()->radio('mail_provider')->checked() ->class('switch-input status')->value('mailchimp') . '') ->class('switch switch-sm switch-3d switch-primary') }} {{__('labels.backend.general_settings.newsletter.mailchimp')}}

{{ html()->label(html()->radio('mail_provider') ->class('switch-input status')->value('sendgrid') . '') ->class('switch switch-sm switch-3d switch-primary') }} {{__('labels.backend.general_settings.newsletter.sendgrid')}}

{!! __('labels.backend.general_settings.newsletter.mail_provider_note') !!}

{{ html()->label(__('labels.backend.general_settings.newsletter.list_id'))->class('col-md-2 form-control-label')->for('newsletter.subscribers.id') }}
{{ html()->text('newsletter__lists__subscribers__id') ->id('list_id') ->class('form-control') ->value(config('newsletter.lists.subscribers.id')) ->placeholder('Ex. d81dasdw17 ') }} {!! __('labels.backend.general_settings.newsletter.list_id_note')!!} {!! __('labels.backend.general_settings.newsletter.list_id_question')!!}
{{ html()->label(__('labels.backend.general_settings.newsletter.double_opt_in'))->class('col-md-2 form-control-label')->for('short_description') }}

{{ html()->label(html()->checkbox('mailchimp_double_opt_in') ->class('switch-input status')->value(0) . '') ->class('switch switch-sm switch-3d switch-primary') }}

{!! __('labels.backend.general_settings.newsletter.double_opt_in_note') !!}

{{ html()->label(__('labels.backend.general_settings.newsletter.api_key'))->class('col-md-2 form-control-label')->for('api.key') }}
{{ html()->text('sendgrid_api_key') ->id('sendgrid_api_key') ->value(config('sendgrid_api_key')) ->class('form-control') ->placeholder('Ex. d814b5e4xxxxxxxxxxxxxxxxxcc27c-us17 ') }}

{!! __('labels.backend.general_settings.newsletter.api_key_note_sendgrid')!!} {!! __('labels.backend.general_settings.newsletter.api_key_question')!!}
{{ html()->label(__('labels.backend.general_settings.newsletter.sendgrid_lists'))->class('col-md-2 form-control-label')->for('') }}
{{ html()->label(html()->radio('list_selection')->checked() ->class('switch-input status sendgrid-radio')->value(1) . '') ->class('switch switch-sm mb-2 switch-3d switch-primary') }} {{__('labels.backend.general_settings.newsletter.select_list')}} {{__('labels.backend.general_settings.newsletter.manage_lists')}} {{ html()->select('sendgrid_list',['' => 'Select List']) ->id('sendgrid_list') ->class('form-control sendgrid-element') }}
{{ html()->label(html()->radio('list_selection') ->class('switch-input status sendgrid-radio')->value(2) . '') ->class('switch switch-sm mb-2 switch-3d switch-primary') }} {{__('labels.backend.general_settings.newsletter.create_new')}} {{ html()->text('list_name') ->id('list_name') ->class('form-control sendgrid-element d-none') ->placeholder('Ex. LMS List ') }}
{{ html()->form()->close() }} @endsection @push('after-scripts') @endpush