@extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @php $setting = App\Models\Utility::getAdminPaymentSetting(); // dd($setting); $flag = $setting['color_flag']; $languages = \App\Models\Utility::languages(); if ($setting['color']) { $color = $setting['color']; } @endphp @php $logo = \App\Models\Utility::get_file('logo/'); $meta_images = \App\Models\Utility::get_file('uploads/logo/'); $file_type = config('files_types'); $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); @endphp @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @section('content')
{{ Form::open(['route' => 'settings.store', 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Brand Settings') }}
{{ __('Dark Logo') }}

{{ __('Light Logo') }}

{{ __('Favicon') }}

{{ Form::label('app_name', __('App Name'), ['class' => 'form-label']) }} {{-- {{ Form::text('app_name', env('APP_NAME'), ['class' => 'form-control', 'placeholder' => __('App Name')]) }} --}} {{ Form::text('app_name', !empty($setting['app_name']) ? $setting['app_name'] : '', ['class' => 'form-control', 'placeholder' => __('App Name')]) }} @error('app_name') {{ $message }} @enderror
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'form-label']) }} {{ Form::text('footer_text', !empty($setting['footer_text']) ? $setting['footer_text'] : '', ['class' => 'form-control', 'placeholder' => __('Footer Text')]) }} @error('footer_text') {{ $message }} @enderror
@php $DEFAULT_LANG = $setting['default_admin_lang'] ? $setting['default_admin_lang'] : 'en'; @endphp
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }}

{{ __('Theme Customizer') }}

{{ __('Primary color settings') }}


{{ __('Sidebar settings') }}

{{ __('Layout settings') }}

{{ Form::close() }}
{{ __('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::open(['route' => 'email.settings.store', 'method' => 'post']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver', !empty($setting['mail_driver']) ? $setting['mail_driver'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Driver'), 'id' => 'mail_driver']) }} @error('mail_driver') {{ $message }} @enderror
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'form-label']) }} {{ Form::text('mail_host', !empty($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' => 'form-label']) }} {{ Form::text('mail_port', !empty($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' => 'form-label']) }} {{ Form::text('mail_username', !empty($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' => 'form-label']) }} {{ Form::text('mail_password', !empty($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' => 'form-label']) }} {{ Form::text('mail_encryption', !empty($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' => 'form-label']) }} {{ Form::text('mail_from_address', !empty($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' => 'form-label']) }} {{ Form::text('mail_from_name', !empty($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.') }}
@csrf
{{ Form::label('currency', __('Currency *'), ['class' => 'form-label']) }} {{-- {{ Form::text('currency', env('CURRENCY'), ['class' => 'form-control font-style', 'required', 'placeholder' => __('Enter Currency')]) }} --}} {{ Form::text('currency', !empty($setting['currency']) ? $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.') }}

@error('currency') {{ $message }} @enderror
{{ Form::label('currency_symbol', __('Currency Symbol *'), ['class' => 'form-label']) }} {{ Form::text('currency_symbol', !empty($setting['currency_symbol']) ? $setting['currency_symbol'] : '', ['class' => 'form-control', 'required', 'placeholder' => __('Enter Currency Symbol')]) }} @error('currency_symbol') {{ $message }} @enderror

{{ __('Requesting manual payment for the planned amount for the subscription plan.') }}

{{ Form::label('bank_details', __('Bank Details'), ['class' => 'form-label']) }} {{ Form::textarea('bank_details', isset($payment_detail['bank_details']) ? $payment_detail['bank_details'] : '', ['class' => 'form-control', 'rows' => '6', 'placeholder' => __('Bank Transfer Details')]) }} {{ __('Example:bank:bank name
Account Number:0000 0000
') }}

{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'form-label']) }} {{ Form::text('stripe_key', isset($payment_detail['stripe_key']) && !empty($payment_detail['stripe_key']) ? $payment_detail['stripe_key'] : '', ['class' => 'form-control', 'placeholder' => __('Stripe Key')]) }}
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'form-label']) }} {{ Form::text('stripe_secret', isset($payment_detail['stripe_secret']) && !empty($payment_detail['stripe_secret']) ? $payment_detail['stripe_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Stripe Secret')]) }}

{{ Form::label('paypal_client_id', __('Client ID'), ['class' => 'form-label']) }} {{ Form::text('paypal_client_id', isset($payment_detail['paypal_client_id']) ? $payment_detail['paypal_client_id'] : '', ['class' => 'form-control', 'placeholder' => __('Client ID')]) }}
{{ Form::label('paypal_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('paypal_secret_key', isset($payment_detail['paypal_secret_key']) ? $payment_detail['paypal_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}

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

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

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

@if ($errors->has('payfast_merchant_key')) {{ $errors->first('payfast_merchant_key') }} @endif
@if ($errors->has('payfast_merchant_id')) {{ $errors->first('payfast_merchant_id') }} @endif
@if ($errors->has('payfast_signature')) {{ $errors->first('payfast_signature') }} @endif

{{ Form::label('iyzipay_api_key', __('Api Key'), ['class' => 'form-label']) }} {{ Form::text('iyzipay_api_key', isset($payment_detail['iyzipay_api_key']) ? $payment_detail['iyzipay_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Api Key')]) }}
{{ Form::label('iyzipay_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('iyzipay_secret_key', isset($payment_detail['iyzipay_secret_key']) ? $payment_detail['iyzipay_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}

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

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

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

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

{{ Form::label('aamarpay_store_id', __('Store Id'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_store_id', isset($payment_detail['aamarpay_store_id']) ? $payment_detail['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($payment_detail['aamarpay_signature_key']) ? $payment_detail['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($payment_detail['aamarpay_description']) ? $payment_detail['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($payment_detail['paytr_merchant_id']) ? $payment_detail['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($payment_detail['paytr_merchant_key']) ? $payment_detail['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($payment_detail['paytr_merchant_salt']) ? $payment_detail['paytr_merchant_salt'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Salt')]) }}
@if ($errors->has('paytr_merchant_salt')) {{ $errors->first('paytr_merchant_salt') }} @endif

{{ Form::label('midtrans_server_key', __('Server Key'), ['class' => 'form-label']) }} {{ Form::text('midtrans_server_key', isset($payment_detail['midtrans_server_key']) ? $payment_detail['midtrans_server_key'] : '', ['class' => 'form-control', 'placeholder' => __('Server Key')]) }}
@if ($errors->has('midtrans_server_key')) {{ $errors->first('midtrans_server_key') }} @endif

{{ Form::label('xendit_api_key', __('Xendit API Key'), ['class' => 'form-label']) }} {{ Form::text('xendit_api_key', isset($payment_detail['xendit_api_key']) ? $payment_detail['xendit_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Xendit API Key')]) }}
@if ($errors->has('xendit_api_key')) {{ $errors->first('xendit_api_key') }} @endif
{{ Form::label('xendit_token', __('Xendit Access Token'), ['class' => 'form-label']) }} {{ Form::text('xendit_token', isset($payment_detail['xendit_token']) ? $payment_detail['xendit_token'] : '', ['class' => 'form-control', 'placeholder' => __('Xendit Access Token')]) }}
@if ($errors->has('xendit_token')) {{ $errors->first('xendit_token') }} @endif

{{ Form::label('yookassa_shopid', __('Shop Id'), ['class' => 'form-label']) }} {{ Form::text('yookassa_shopid', isset($payment_detail['yookassa_shopid']) ? $payment_detail['yookassa_shopid'] : '', ['class' => 'form-control', 'placeholder' => __('Yookassa Shop Id')]) }}
@if ($errors->has('yookassa_shopid')) {{ $errors->first('yookassa_shopid') }} @endif
{{ Form::label('yookassa_secret_key', __('Yookassa Secret Key'), ['class' => 'form-label']) }} {{ Form::text('yookassa_secret_key', isset($payment_detail['yookassa_secret_key']) ? $payment_detail['yookassa_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Yookassa Secret Key')]) }}
@if ($errors->has('yookassa_secret_key')) {{ $errors->first('yookassa_secret_key') }} @endif
{{-- paiement pro payment --}}

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


{{-- end --}} {{-- Cinetpay --}}

{{-- end --}} {{-- Fedapay --}}


{{-- end --}} {{-- PayHere --}}


{{-- end --}}
@csrf
{{ __('Pusher Settings') }}
@csrf
{{ 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::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
{{ Form::open(['route' => ['settings.seo.store'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('SEO Settings') }}
{{ Form::label('Telegram Access Token', __('Meta Keywords'), ['class' => 'form-label']) }} {{ Form::text('meta_keywords', isset($payment_detail['meta_keywords']) ? $payment_detail['meta_keywords'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Meta Keywords'), 'required' => 'required']) }}
{{ Form::label('Telegram ChatID', __('Meta Description'), ['class' => 'form-label']) }} {{ Form::textarea('meta_description', isset($payment_detail['meta_description']) ? $payment_detail['meta_description'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Meta Description'), 'required' => 'required']) }}
{{ __('Meta Image') }}
{{ Form::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
{{ __('Cache Settings') }}
This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.
{{ Form::label('cache', __('Current cache size'), ['class' => 'col-form-label']) }}
{{ __('MB') }}
{{ Form::model($payment_detail, ['route' => 'settings.chatgptkey', 'method' => 'post']) }}
{{ __('Chat GPT Key Settings') }}
{{ Form::label('chatgpt_key', __('ChatGPT key'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_key', isset($payment_detail['chatgpt_key']) ? $payment_detail['chatgpt_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Key Here')]) }}
{{ Form::label('chatgpt_model', __('ChatGPT Model'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_model', isset($payment_detail['chatgpt_model']) ? $payment_detail['chatgpt_model'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Model Here')]) }}
{{ Form::close() }}
@endsection @push('scripts') {{-- --}} @if ($payment_detail['enable_cookie'] != 'on') @endif {{-- color picker script --}} @endpush @if ($color == 'theme-3') @endif @if ($color == 'theme-2') @endif @if ($color == 'theme-4') @endif @if ($color == 'theme-1') @endif