JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @section('action-button') @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @php // $logo = asset(Storage::url('uploads/logo/')); $logo = \App\Models\Utility::get_file('uploads/logo/'); $meta_image = \App\Models\Utility::get_file('uploads/meta/'); $lang = \App\Models\Utility::getValByName('default_language'); $color = isset($settings['theme_color']) ? $settings['theme_color'] : 'theme-3'; $flag = !empty($settings['color_flag']) ? $settings['color_flag'] : ''; // $is_sidebar_transperent = isset($settings['is_sidebar_transperent']) ? $settings['is_sidebar_transperent'] : ''; // $dark_mode = isset($settings['dark_mode']) ? $settings['dark_mode'] : ''; $setting = \App\Models\Utility::settings(); $SITE_RTL = $settings['SITE_RTL']; if ($SITE_RTL == '') { $SITE_RTL == 'off'; } $file_type = config('files_types'); $setting = \App\Models\Utility::settings(); $local_storage_validation = $setting['local_storage_validation']; $local_storage_validations = explode(',', $local_storage_validation); $s3_storage_validation = $setting['s3_storage_validation']; $s3_storage_validations = explode(',', $s3_storage_validation); $wasabi_storage_validation = $setting['wasabi_storage_validation']; $wasabi_storage_validations = explode(',', $wasabi_storage_validation); $chatgpt_key = Utility::getValByName('chatgpt_key'); $chatgpt_enable = !empty($chatgpt_key); $google_recaptcha_version = ['v2-checkbox' => __('v2'), 'v3' => __('v3')]; @endphp @if ($color == 'theme-1') @endif @if ($color == 'theme-2') @endif @if ($color == 'theme-4') @endif @section('content')
{{ Form::model($settings, ['route' => 'settings.store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{ __('Brand Settings') }}
{{ __('Logo dark') }}
@error('logo')
@enderror
{{ __('Logo Light') }}
@error('logo_light')
{{ $message }}
@enderror
{{ __('Favicon') }}
@error('favicon')
{{ $message }}
@enderror
{{ Form::label('title_text', __('Title Text'), ['class' => 'col-form-label']) }} {{ Form::text('title_text', null, ['class' => 'form-control', 'placeholder' => __('Title Text')]) }} @error('title_text') {{ $message }} @enderror
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'col-form-label']) }} {{ Form::text('footer_text', null, ['class' => 'form-control', 'placeholder' => __('Footer Text')]) }} @error('footer_text') {{ $message }} @enderror
{{ Form::label('default_language', __('Default Language'), ['class' => 'col-form-label']) }}
{{ Form::label('display_landing_page', __('Enable Landing Page'), ['class' => 'col-form-label']) }}
{{ Form::label('SITE_RTL', __('Enable RTL'), ['class' => 'col-form-label']) }}
{{ Form::label('disable_signup_button', __('Enable Sign-Up Page'), ['class' => 'col-form-label']) }}
{{ Form::label('email_verification', __('Email Verification'), ['class' => 'col-form-label']) }}
{{ __('Theme Customizer') }}
{{ __('Primary color Settings') }}


{{ __('Sidebar Settings') }}

{{ __('Layout Settings') }}

{{ Form::close() }}
{{ Form::open(['route' => 'email.settings', 'method' => 'post']) }}
{{ __('Email Settings') }}
{{ __('This SMTP will be used for system-level email sending. Additionally, if a company user does not set their SMTP, then this SMTP will be used for sending emails.') }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'col-form-label mail_driver']) }} {{ Form::text('mail_driver', isset($setting['mail_driver']) ? $setting['mail_driver'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Mail Driver')]) }} @error('mail_driver') {{ $message }} @enderror
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'col-form-label']) }} {{ Form::text('mail_host', isset($setting['mail_host']) ? $setting['mail_host'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Mail Host')]) }} @error('mail_host') {{ $message }} @enderror
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'col-form-label']) }} {{ Form::text('mail_port', isset($setting['mail_port']) ? $setting['mail_port'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Port')]) }} @error('mail_port') {{ $message }} @enderror
{{ Form::label('mail_username', __('Mail Username'), ['class' => 'col-form-label']) }} {{ Form::text('mail_username', isset($setting['mail_username']) ? $setting['mail_username'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Username')]) }} @error('mail_username') {{ $message }} @enderror
{{ Form::label('mail_password', __('Mail Password'), ['class' => 'col-form-label']) }} {{ Form::text('mail_password', isset($setting['mail_password']) ? $setting['mail_password'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Password')]) }} @error('mail_password') {{ $message }} @enderror
{{ Form::label('mail_encryption', __('Mail Encryption'), ['class' => 'col-form-label']) }} {{ Form::text('mail_encryption', isset($setting['mail_encryption']) ? $setting['mail_encryption'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Encryption')]) }} @error('mail_encryption') {{ $message }} @enderror
{{ Form::label('mail_from_address', __('Mail From Address'), ['class' => 'col-form-label']) }} {{ Form::text('mail_from_address', isset($setting['mail_from_address']) ? $setting['mail_from_address'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail From Address')]) }} @error('mail_from_address') {{ $message }} @enderror
{{ Form::label('mail_from_name', __('Mail From Name'), ['class' => 'col-form-label']) }} {{ Form::text('mail_from_name', isset($setting['mail_from_name']) ? $setting['mail_from_name'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail From Name')]) }} @error('mail_from_name') {{ $message }} @enderror
{{ Form::close() }}
{{ 'Payment Settings' }}
{{ __('These details will be used to collect subscription plan payments.Each subscription plan will have a payment button based on the below configuration.') }}
{{ Form::open(['route' => 'payment.settings', 'method' => 'post']) }} @csrf
{{ Form::text('currency', isset($admin_payment_setting['currency']) ? $admin_payment_setting['currency'] : '', ['class' => 'form-control font-style', 'required', 'placeholder' => __('Enter Currency')]) }} {{ __('Note: Add currency code as per three-letter ISO code') }}. {{ __('You can find out how to do that here.') }}
{{ Form::text('currency_symbol', isset($admin_payment_setting['currency_symbol']) ? $admin_payment_setting['currency_symbol'] : '', ['class' => 'form-control', 'required', 'placeholder' => __('Enter Currency Symbol')]) }}

{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'col-form-label']) }} {{ Form::text('stripe_key', isset($admin_payment_setting['stripe_key']) ? $admin_payment_setting['stripe_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Stripe Key')]) }} @if ($errors->has('stripe_key')) {{ $errors->first('stripe_key') }} @endif
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'col-form-label']) }} {{ Form::text('stripe_secret', isset($admin_payment_setting['stripe_secret']) ? $admin_payment_setting['stripe_secret'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Stripe Secret')]) }} @if ($errors->has('stripe_secret')) {{ $errors->first('stripe_secret') }} @endif

{{ __('Requesting Manual payment for the planned amount for the subscriptions plan.') }}

{!! Form::label('bank_details', 'Bank Details', ['class' => 'col-form-label']) !!} {!! Form::textarea( 'bank_details', isset($admin_payment_setting['bank_details']) ? $admin_payment_setting['bank_details'] : '', ['class' => 'form-control', 'rows' => '9', 'cols' => '20'], ) !!} {{ __('Example : Bank : Bank Name
Account Number : 0000 0000
') }}.


@if ($errors->has('paytm_merchant_id')) {{ $errors->first('paytm_merchant_id') }} @endif
@if ($errors->has('paytm_merchant_key')) {{ $errors->first('paytm_merchant_key') }} @endif
@if ($errors->has('paytm_industry_type')) {{ $errors->first('paytm_industry_type') }} @endif


@if ($errors->has('mercado_secret_key')) {{ $errors->first('mercado_access_token') }} @endif

@if ($errors->has('skrill_email')) {{ $errors->first('skrill_email') }} @endif




@if ($errors->has('paytab_profile_id')) {{ $errors->first('paytab_profile_id') }} @endif
@if ($errors->has('paytab_server_key')) {{ $errors->first('paytab_server_key') }} @endif

@if ($errors->has('paytab_region')) {{ $errors->first('paytab_region') }} @endif

{{ Form::label('benefit_api_key', __('Benefit Key'), ['class' => 'col-form-label']) }} {{ Form::text('benefit_api_key', isset($admin_payment_setting['benefit_api_key']) ? $admin_payment_setting['benefit_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Benefit Key')]) }} @error('benefit_api_key') {{ $message }} @enderror
{{ Form::label('benefit_secret_key', __('Benefit Secret Key'), ['class' => 'col-form-label']) }} {{ Form::text('benefit_secret_key', isset($admin_payment_setting['benefit_secret_key']) ? $admin_payment_setting['benefit_secret_key'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Benefit Secret key')]) }} @error('benefit_secret_key') {{ $message }} @enderror

{{ Form::label('cashfree_api_key', __('Cashfree Key'), ['class' => 'col-form-label']) }} {{ Form::text('cashfree_api_key', isset($admin_payment_setting['cashfree_api_key']) ? $admin_payment_setting['cashfree_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Cashfree Key')]) }} @error('cashfree_api_key') {{ $message }} @enderror
{{ Form::label('cashfree_secret_key', __('Cashfree Secret Key'), ['class' => 'col-form-label']) }} {{ Form::text('cashfree_secret_key', isset($admin_payment_setting['cashfree_secret_key']) ? $admin_payment_setting['cashfree_secret_key'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Cashfree Secret key')]) }} @error('cashfree_secret_key') {{ $message }} @enderror

{{ Form::label('aamarpay_store_id', __('Store Id'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_store_id', isset($admin_payment_setting['aamarpay_store_id']) ? $admin_payment_setting['aamarpay_store_id'] : '', ['class' => 'form-control', 'placeholder' => __('Store Id')]) }}
@if ($errors->has('aamarpay_store_id')) {{ $errors->first('aamarpay_store_id') }} @endif
{{ Form::label('aamarpay_signature_key', __('Signature Key'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_signature_key', isset($admin_payment_setting['aamarpay_signature_key']) ? $admin_payment_setting['aamarpay_signature_key'] : '', ['class' => 'form-control', 'placeholder' => __('Signature Key')]) }}
@if ($errors->has('aamarpay_signature_key')) {{ $errors->first('aamarpay_signature_key') }} @endif
{{ Form::label('aamarpay_description', __('Description'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_description', isset($admin_payment_setting['aamarpay_description']) ? $admin_payment_setting['aamarpay_description'] : '', ['class' => 'form-control', 'placeholder' => __('Description')]) }}
@if ($errors->has('aamarpay_description')) {{ $errors->first('aamarpay_description') }} @endif

{{ Form::label('paytr_merchant_id', __('Merchant Id'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_id', isset($admin_payment_setting['paytr_merchant_id']) ? $admin_payment_setting['paytr_merchant_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('paytr_merchant_id')) {{ $errors->first('paytr_merchant_id') }} @endif
{{ Form::label('paytr_merchant_key', __('Merchant Key'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_key', isset($admin_payment_setting['paytr_merchant_key']) ? $admin_payment_setting['paytr_merchant_key'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Key')]) }}
@if ($errors->has('paytr_merchant_key')) {{ $errors->first('paytr_merchant_key') }} @endif
{{ Form::label('paytr_merchant_salt', __('Merchant Salt'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_salt', isset($admin_payment_setting['paytr_merchant_salt']) ? $admin_payment_setting['paytr_merchant_salt'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Salt')]) }}
@if ($errors->has('paytr_merchant_salt')) {{ $errors->first('paytr_merchant_salt') }} @endif

@if ($errors->has('yookassa_shop_id')) {{ $errors->first('yookassa_shop_id') }} @endif
@if ($errors->has('yookassa_secret')) {{ $errors->first('yookassa_secret') }} @endif


@if ($errors->has('midtrans_secret')) {{ $errors->first('midtrans_secret') }} @endif

@if ($errors->has('xendit_api')) {{ $errors->first('xendit_api') }} @endif
@if ($errors->has('xendit_token')) {{ $errors->first('xendit_token') }} @endif


{{ Form::label('nepalste_public_key', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('nepalste_public_key', isset($admin_payment_setting['nepalste_public_key']) ? $admin_payment_setting['nepalste_public_key'] : '', ['class' => 'form-control', 'placeholder' => __('Public Key')]) }}
@if ($errors->has('nepalste_public_key')) {{ $errors->first('nepalste_public_key') }} @endif
{{ Form::label('nepalste_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('nepalste_secret_key', isset($admin_payment_setting['nepalste_secret_key']) ? $admin_payment_setting['nepalste_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
@if ($errors->has('nepalste_secret_key')) {{ $errors->first('nepalste_secret_key') }} @endif

{{ Form::label('paiementpro_merchant_id', __('Merchant Id'), ['class' => 'form-label']) }} {{ Form::text('paiementpro_merchant_id', isset($admin_payment_setting['paiementpro_merchant_id']) ? $admin_payment_setting['paiementpro_merchant_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('paiementpro_merchant_id')) {{ $errors->first('paiementpro_merchant_id') }} @endif

{{ Form::label('cinetpay_api_key', __('CinetPay API Key'), ['class' => 'form-label']) }} {{ Form::text('cinetpay_api_key', isset($admin_payment_setting['cinetpay_api_key']) ? $admin_payment_setting['cinetpay_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('CinetPay API Key')]) }}
@if ($errors->has('cinetpay_api_key')) {{ $errors->first('cinetpay_api_key') }} @endif
{{ Form::label('cinetpay_site_id', __('CinetPay Site ID'), ['class' => 'form-label']) }} {{ Form::text('cinetpay_site_id', isset($admin_payment_setting['cinetpay_site_id']) ? $admin_payment_setting['cinetpay_site_id'] : '', ['class' => 'form-control', 'placeholder' => __('CinetPay Site ID')]) }}
@if ($errors->has('cinetpay_site_id')) {{ $errors->first('cinetpay_site_id') }} @endif
{{ Form::open(['route' => 'pusher.settings', 'method' => 'post']) }}
{{ __('Pusher Settings') }}
{{ Form::close() }}
@csrf
{{ Form::label('google_recaptcha_version', __('Google Recaptcha Version'), ['class' => ' col-form-label']) }} {{ Form::select('google_recaptcha_version', $google_recaptcha_version, isset($setting['google_recaptcha_version']) ? $setting['google_recaptcha_version'] : 'v2-checkbox', ['id' => 'google_recaptcha_version', 'class' => 'form-control choices', 'searchEnabled' => 'true']) }}
{{ Form::open(['route' => 'storage.setting.store', 'enctype' => 'multipart/form-data']) }}
{{ __('Storage Settings') }}
{{ Form::label('local_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }}
{{ Form::label('s3_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }}
{{ Form::label('wasabi_storage_validation', __('Only Upload Files'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{-- SEO settings --}}
{{ __('SEO Settings') }}
@if ($chatgpt_enable) @endif
{{ Form::open(['url' => route('seo.settings'), 'method' => 'post', 'enctype' => 'multipart/form-data']) }} @csrf
{{ Form::label('Meta Keywords', __('Meta Keywords'), ['class' => 'col-form-label']) }} {{ Form::text('meta_title', !empty($setting['meta_title']) ? $setting['meta_title'] : '', ['class' => 'form-control ', 'placeholder' => 'Meta Keywords']) }}
{{ Form::label('Meta Description', __('Meta Description'), ['class' => 'col-form-label']) }} {{ Form::textarea('meta_description', !empty($setting['meta_description']) ? $setting['meta_description'] : '', ['class' => 'form-control ', 'placeholder' => 'Meta Description', 'rows' => 3]) }}
{{ Form::label('Meta Image', __('Meta Image'), ['class' => 'col-form-label']) }}
@error('meta_image')
@enderror
{{ Form::close() }}
{{-- Cache settings --}}
{{ __('Cache Settings') }}
{{ Form::open(['url' => route('clear.cache')]) }}
{{ Form::label('Current cache size', __('Current cache size'), ['class' => 'col-form-label']) }}
{{ __('MB') }}
{{ Form::close() }}
{{-- GDPR Cookie Consent --}} {{-- ChatGPT Key Settings --}}
{{ Form::model($settings, ['route' => 'settings.chatgptkey', 'method' => 'post']) }}
{{ __('Chat GPT Key Settings') }}
{{ __('Edit your key details') }}
{{ Form::label('Chat GPT Key', __('Chat GPT Key'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_key', isset($settings['chatgpt_key']) ? $settings['chatgpt_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Key Here')]) }}
{{ Form::label('Chat GPT Model', __('Chat GPT Model'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_model', isset($settings['chatgpt_model']) ? $settings['chatgpt_model'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Model Here')]) }}
{{ Form::close() }}
@endsection