@extends('backend.layouts.app') @section('title', __('labels.backend.general_settings.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() }}
{{ html()->label(__('labels.backend.general_settings.app_name'))->class('col-md-2 form-control-label')->for('app_name') }}
{{ html()->text('app__name') ->class('form-control') ->placeholder(__('labels.backend.general_settings.app_name')) ->attribute('maxlength', 191) ->value(config('app.name')) ->autofocus() }}
{{ html()->label(__('labels.backend.general_settings.app_url'))->class('col-md-2 form-control-label')->for('app_url') }}
{{ html()->text('app__url') ->class('form-control') ->placeholder(__('labels.backend.general_settings.app_url')) ->attribute('maxlength', 191) ->value(config('app.url')) }}
{{ html()->label(__('labels.backend.general_settings.font_color'))->class('col-md-2 form-control-label')->for('font_color') }}
This will change frontend theme font colors
{{ html()->label(__('labels.backend.general_settings.counter'))->class('col-md-2 form-control-label')->for('counter') }}
{!! __('labels.backend.general_settings.counter_note') !!}
{{ html()->label(__('labels.backend.general_settings.google_analytics_id'))->class('col-md-2 form-control-label')->for('app_name') }}
{{ html()->text('google_analytics_id') ->class('form-control') ->placeholder('Ex. UA-34XXXXX23-3') ->attribute('maxlength', 191) ->value(config('google_analytics_id')) ->autofocus() }} {{__('labels.backend.general_settings.google_analytics_id_note')}}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.captcha_status'))->class('col-md-2 form-control-label')->for('captcha_status') }}
{{ html()->label( html()->checkbox('access__captcha__registration', config('access.captcha.registration') ? true : false,1)->id('captcha_status') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{__('labels.backend.general_settings.captcha_note')}} {{__('labels.backend.general_settings.captcha')}}

{{ html()->label(__('validation.attributes.backend.settings.general_settings.captcha_site_key'))->class('col-md-2 form-control-label')->for('captcha_site_key') }}
{{ html()->text('no-captcha.sitekey') ->class('form-control') ->placeholder(__('validation.attributes.backend.settings.general_settings.captcha_site_key')) ->value(config('no-captcha.sitekey')) }}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.captcha_site_secret'))->class('col-md-2 form-control-label')->for('captcha_site_secret') }}
{{ html()->text('no-captcha.secret') ->class('form-control') ->placeholder(__('validation.attributes.backend.settings.general_settings.captcha_site_secret')) ->value(config('no-captcha.secret')) }}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.retest_status'))->class('col-md-2 form-control-label')->for('retest') }}
{{ html()->label( html()->checkbox('retest', config('retest') ? true : false,1)->id('retest') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{__('labels.backend.general_settings.retest_note')}}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.lesson_timer'))->class('col-md-2 form-control-label')->for('lesson_timer') }}
{{ html()->label( html()->checkbox('lesson_timer', config('lesson_timer') ? true : false,1)->id('retest') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{__('labels.backend.general_settings.lesson_note')}}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.show_offers'))->class('col-md-2 form-control-label')->for('show_offers') }}
{{ html()->label( html()->checkbox('show_offers', config('show_offers') ? true : false,1)->id('retest') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{__('labels.backend.general_settings.show_offers_note')}}
{{ html()->label(__('validation.attributes.backend.settings.general_settings.one_signal_push_notification'))->class('col-md-2 form-control-label')->for('onesignal_status') }}
{{ html()->label( html()->checkbox('onesignal_status', config('onesignal_status') ? true : false,1)->id('onesignal_status') ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{__('labels.backend.general_settings.how_to_onesignal')}}
{{__('labels.backend.general_settings.setup_onesignal')}}
{{__('labels.backend.general_settings.onesignal_note')}}

{{ html()->textarea('onesignal_data') ->class('form-control') ->placeholder(__('validation.attributes.backend.settings.general_settings.onesignal_code')) ->value(config('onesignal_data')) }}
{{ html()->label(__('labels.backend.logo.logo_b'))->class('col-md-2 form-control-label')->for('logo_b_image') }}
{!! Form::file('logo_b_image', ['class' => 'form-control d-inline-block', 'placeholder' => '','id' => 'logo_b_image', 'accept' => 'image/jpeg,image/gif,image/png', 'data-preview'=>'#logo_b_image_preview']) !!}

{!! __('labels.backend.logo.logo_b_note')!!}

{{ html()->label(__('labels.backend.logo.logo_w'))->class('col-md-2 form-control-label')->for('logo_w_image') }}
{!! Form::file('logo_w_image', ['class' => 'form-control d-inline-block', 'placeholder' => '', 'data-preview'=>'#logo_w_image_preview', 'id' => 'logo_w_image', 'accept' => 'image/jpeg,image/gif,image/png']) !!}

{!! __('labels.backend.logo.logo_w_note')!!}

{{ html()->label(__('labels.backend.logo.logo_white'))->class('col-md-2 form-control-label')->for('logo_white_image') }}
{!! Form::file('logo_white_image', ['class' => 'form-control d-inline-block', 'placeholder' => '', 'data-preview'=>'#logo_white_image_preview', 'id' => 'logo_w_image', 'accept' => 'image/jpeg,image/gif,image/png']) !!}

{!! __('labels.backend.logo.logo_white_note')!!}

{{ html()->label(__('labels.backend.logo.logo_popup'))->class('col-md-2 form-control-label')->for('logo_white_image') }}
{!! Form::file('logo_popup', ['class' => 'form-control d-inline-block', 'placeholder' => '', 'data-preview'=>'#logo_popup_preview', 'id' => 'logo_w_image', 'accept' => 'image/jpeg,image/gif,image/png']) !!}

{!! __('labels.backend.logo.logo_popup_note')!!}

{{ html()->label(__('labels.backend.logo.favicon'))->class('col-md-2 form-control-label')->for('favicon_image') }}
{!! Form::file('favicon_image', ['class' => 'form-control d-inline-block', 'placeholder' => '', 'data-preview'=>'#favicon_image_preview', 'accept' => 'image/jpeg,image/gif,image/png']) !!}

{!! __('labels.backend.logo.favicon_note')!!}

{{ html()->label(__('labels.backend.general_settings.layout_type'))->class('col-md-2 form-control-label')->for('layout_type') }}
This will change frontend theme layout type
{{ html()->label(__('labels.backend.general_settings.theme_layout'))->class('col-md-2 form-control-label')->for('theme_layout') }}
{{__('labels.backend.general_settings.layout_note')}}

Once you click on update, you will see list of sections to on/off.

@foreach($sections as $key=>$item)

{{ html()->label(html()->checkbox('')->id($key) ->checked(($item->status == 1) ? true : false)->class('switch-input')->value(($item->status == 1) ? 1 : 0) . '') ->class('switch switch-sm switch-3d switch-primary') }} {{$item->title}}

@endforeach
{{ html()->label(__('labels.backend.general_settings.email.mail_from_name'))->class('col-md-2 form-control-label')->for('mail_from_name') }}
{{ html()->text('mail__from__name') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_from_name')) ->attribute('maxlength', 191) ->value(config('mail.from.name')) ->autofocus() }} {{__('labels.backend.general_settings.email.mail_from_name_note')}}
{{ html()->label(__('labels.backend.general_settings.email.mail_from_address'))->class('col-md-2 form-control-label')->for('mail_from_address') }}
{{ html()->text('mail__from__address') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_from_address')) ->attribute('maxlength', 191) ->value(config('mail.from.address')) ->autofocus() }} {{__('labels.backend.general_settings.email.mail_from_address_note')}}
{{ html()->label(__('labels.backend.general_settings.email.mail_driver'))->class('col-md-2 form-control-label')->for('mail_driver') }}
{{ html()->text('mail__driver') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_driver')) ->attribute('maxlength', 191) ->value(config('mail.driver')) }} {!! __('labels.backend.general_settings.email.mail_driver_note') !!}
{{ html()->label(__('labels.backend.general_settings.email.mail_host'))->class('col-md-2 form-control-label')->for('mail_host') }}
{{ html()->text('mail__host') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_driver')) ->attribute('maxlength', 191) ->placeholder('Ex. smtp.gmail.com') ->value(config('mail.host')) }}
{{ html()->label(__('labels.backend.general_settings.email.mail_port'))->class('col-md-2 form-control-label')->for('mail_port') }}
{{ html()->text('mail__port') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_port')) ->attribute('maxlength', 191) ->placeholder('Ex. 465') ->value(config('mail.port')) }}
{{ html()->label(__('labels.backend.general_settings.email.mail_username'))->class('col-md-2 form-control-label')->for('mail_username') }}
{{ html()->text('mail__username') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_username')) ->attribute('maxlength', 191) ->placeholder('Ex. myemail@email.com') ->value(config('mail.username')) }} {!! __('labels.backend.general_settings.email.mail_username_note') !!}
{{ html()->label(__('labels.backend.general_settings.email.mail_password'))->class('col-md-2 form-control-label')->for('mail_password') }}
{{ html()->password('mail__password') ->class('form-control') ->placeholder(__('labels.backend.general_settings.email.mail_password')) ->attribute('maxlength', 191) ->placeholder(__('labels.backend.general_settings.email.mail_password')) ->value(config('mail.password')) }} {!! __('labels.backend.general_settings.email.mail_password_note') !!}
{{ html()->label(__('labels.backend.general_settings.email.mail_encryption'))->class('col-md-2 form-control-label')->for('mail_encryption') }}
{{ html()->select('mail__encryption',['tls' => 'tls','ssl' => 'ssl'], config('mail.encryption')) ->class('form-control') }} {!! __('labels.backend.general_settings.email.mail_encryption_note') !!}

{!! __('labels.backend.general_settings.email.note') !!}

{{ html()->label(__('labels.backend.general_settings.payment_settings.select_currency'))->class('col-md-3 form-control-label')}}
{{ html()->label(__('labels.backend.general_settings.payment_settings.stripe'))->class('col-md-3 form-control-label')->for('services.stripe.active') }}
{{ html()->label( html()->checkbox('services__stripe__active', config('services.stripe.active') ? true : false,1) ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }} {{ __('labels.backend.general_settings.payment_settings.how_to_stripe')}}
{{ __('labels.backend.general_settings.payment_settings.stripe_note')}}

{{ html()->label(__('labels.backend.general_settings.payment_settings.key'))->class('col-md-2 form-control-label')->for('services.stripe.key') }}
{{ html()->text('services__stripe__key') ->class('form-control') ->value(config('services.stripe.key')) }}
{{ html()->label(__('labels.backend.general_settings.payment_settings.secret'))->class('col-md-2 form-control-label')->for('services.stripe.secret') }}
{{ html()->text('services__stripe__secret') ->class('form-control') ->value(config('services.stripe.secret')) }}
{{ html()->label(__('labels.backend.general_settings.payment_settings.paypal'))->class('col-md-3 form-control-label')}}
{{ html()->label( html()->checkbox('paypal__active', config('paypal.active') ? true : false,1) ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }} {{ __('labels.backend.general_settings.payment_settings.how_to_paypal')}}
{{ __('labels.backend.general_settings.payment_settings.paypal_note')}}

{{ html()->label(__('labels.backend.general_settings.payment_settings.mode'))->class('col-md-2 form-control-label') }}
{!! __('labels.backend.general_settings.payment_settings.mode_note') !!}
{{ html()->label(__('labels.backend.general_settings.payment_settings.client_id'))->class('col-md-2 form-control-label') }}
{{ html()->text('paypal__client_id') ->class('form-control') ->value(config('paypal.client_id')) }}
{{ html()->label(__('labels.backend.general_settings.payment_settings.client_secret'))->class('col-md-2 form-control-label')->for('paypal.paypal.secret') }}
{{ html()->text('paypal__secret') ->class('form-control') ->value(config('paypal.secret')) }}
{{ html()->label(__('labels.backend.general_settings.payment_settings.offline_mode'))->class('col-md-3 form-control-label')}}
{{ html()->label( html()->checkbox('payment_offline_active', config('payment_offline_active') ? true : false,1) ->class('switch-input')->value(1) . '') ->class('switch switch-sm switch-3d switch-primary') }}
{{ __('labels.backend.general_settings.payment_settings.offline_mode_note')}}
{{ html()->label(__('labels.backend.general_settings.language_settings.default_language'))->class('col-md-2 form-control-label')->for('default_language') }}
{{ html()->label(__('labels.backend.general_settings.language_settings.display_type'))->class('col-md-2 form-control-label')->for('display_type') }}

{{__('labels.backend.general_settings.user_registration_settings.desc')}}

{{__('labels.backend.general_settings.api_clients.title')}}

{!! __('labels.backend.general_settings.api_clients.note') !!}

{{__('labels.backend.general_settings.api_clients.developer_manual')}}
@foreach($api_clients as $key => $client) @endforeach
# {{__('labels.backend.general_settings.api_clients.fields.name')}} {{__('labels.backend.general_settings.api_clients.fields.id')}} {{__('labels.backend.general_settings.api_clients.fields.secret')}} {{__('labels.backend.general_settings.api_clients.fields.status')}} {{__('labels.backend.general_settings.api_clients.fields.action')}}
{{$key+1}} {{$client->name}} {{$client->id}} {{$client->secret}} {{$client->revoked?__('labels.backend.general_settings.api_clients.revoked'):__('labels.backend.general_settings.api_clients.live')}} @if(!$client->revoked) {{__('labels.backend.general_settings.api_clients.revoke')}} @else {{__('labels.backend.general_settings.api_clients.enable')}} @endif
{{ html()->form()->close() }} @endsection @push('after-scripts') @endpush