@extends('layouts.admin') @section('title') {{ __('Settings') }} @endsection @php if ($settings['color']) { $color = $settings['color']; } @endphp @push('css') @endpush @php $logo = \App\Models\Utility::get_file('logo/'); $file_type = config('files_types'); $local_storage_validation = $settings['local_storage_validation']; $local_storage_validations = explode(',', $local_storage_validation); $s3_storage_validation = $settings['s3_storage_validation']; $s3_storage_validations = explode(',', $s3_storage_validation); $wasabi_storage_validation = $settings['wasabi_storage_validation']; $wasabi_storage_validations = explode(',', $wasabi_storage_validation); @endphp @section('content')
{{ __('Brand Settings') }}

{{ __('Edit your brand details.') }}

{{ __('Email Settings') }}

{{ __('Edit your email details.') }}

{{ __('Pusher Settings') }}

{{ __('Edit your pusher details.') }}

{{ __('Payment Settings') }}

{{ __('Edit your Payment details.') }}

{{ __('ReCaptcha Settings') }}

{{ __('Edit your recaptcha details.') }}

{{ __('Storage Settings') }}

{{ __('Edit your storage details.') }}

{{ __('SEO Settings') }}

{{ __('Edit your SEO Settings details.') }}

{{ __('Cache Settings') }}

{{ __('Clear your cache details.') }}

{{ __('Cookie Settings') }}

{{ __('Edit your Cookie Settings.') }}

{{ __('Chat GPT Key Settings') }}

{{ __('Edit your key details.') }}

{{ __('Brand Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('full_logo', __('Logo'), ['class' => 'form-control-label']) }} @error('full_logo') @enderror
{{ Form::label('favicon', __('Favicon'), ['class' => 'form-control-label']) }} @error('favicon') {{ $message }} @enderror
{{ Form::label('header_text', __('Title Text'), ['class' => 'form-control-label']) }} {{ Form::text('header_text', \App\Models\Utility::getValByName('header_text'), ['class' => 'form-control', 'placeholder' => __('Enter Header Title Text')]) }}
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'form-control-label']) }} {{ Form::text('footer_text', \App\Models\Utility::getValByName('footer_text'), ['class' => 'form-control', 'placeholder' => __('Enter Footer Text')]) }}
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-control-label text-dark']) }}
{{ Form::label('timezone', __('Timezone'), ['class' => 'form-control-label text-dark']) }}
{{-- --}}
{{--
--}}
{{--
{{ Form::label('cookie_text', __('GDPR Cookie Text'), ['class' => 'fulltime']) }} {!! Form::textarea('cookie_text', $settings['cookie_text'], ['class' => 'form-control fulltime', 'rows' => '4']) !!}
--}}
{{ __('Primary color settings') }}


{{ Form::label('footer_link_1', __('Footer Link Title 1'), ['class' => 'form-control-label']) }} {{ Form::text('footer_link_1', \App\Models\Utility::getValByName('footer_link_1'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link Title 1')]) }}
{{ Form::label('footer_value_1', __('Footer Link href 1'), ['class' => 'form-control-label']) }} {{ Form::text('footer_value_1', \App\Models\Utility::getValByName('footer_value_1'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link 1')]) }}
{{ Form::label('footer_link_2', __('Footer Link Title 2'), ['class' => 'form-control-label']) }} {{ Form::text('footer_link_2', \App\Models\Utility::getValByName('footer_link_2'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link Title 2')]) }}
{{ Form::label('footer_value_2', __('Footer Link href 2'), ['class' => 'form-control-label']) }} {{ Form::text('footer_value_2', \App\Models\Utility::getValByName('footer_value_2'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link 2')]) }}
{{ Form::label('footer_link_3', __('Footer Link Title 3'), ['class' => 'form-control-label']) }} {{ Form::text('footer_link_3', \App\Models\Utility::getValByName('footer_link_3'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link Title 3')]) }}
{{ Form::label('footer_value_3', __('Footer Link href 3'), ['class' => 'form-control-label']) }} {{ Form::text('footer_value_3', \App\Models\Utility::getValByName('footer_value_3'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Footer Link 3')]) }}
{{ Form::hidden('from', 'site_setting') }}
{{ Form::close() }}
{{ __('Email Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-control-label']) }} {{ Form::text('mail_driver', \App\Models\Utility::getValByName('mail_driver'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Driver')]) }}
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'form-control-label']) }} {{ Form::text('mail_host',\App\Models\Utility::getValByName('mail_host'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Host')]) }}
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'form-control-label']) }} {{ Form::number('mail_port', \App\Models\Utility::getValByName('mail_port'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Port'), 'min' => '0']) }}
{{ Form::label('mail_username', __('Mail Username'), ['class' => 'form-control-label']) }} {{ Form::text('mail_username', \App\Models\Utility::getValByName('mail_username'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Username')]) }}
{{ Form::label('mail_password', __('Mail Password'), ['class' => 'form-control-label']) }} {{ Form::text('mail_password',\App\Models\Utility::getValByName('mail_password'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Password')]) }}
{{ Form::label('mail_encryption', __('Mail Encryption'), ['class' => 'form-control-label']) }} {{ Form::text('mail_encryption',\App\Models\Utility::getValByName('mail_encryption'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Encryption')]) }}
{{ Form::label('mail_from_address', __('Mail From Address'), ['class' => 'form-control-label']) }} {{ Form::text('mail_from_address',\App\Models\Utility::getValByName('mail_from_address'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail From Address')]) }}
{{ Form::label('mail_from_name', __('Mail From Name'), ['class' => 'form-control-label']) }} {{ Form::text('mail_from_name',\App\Models\Utility::getValByName('mail_from_name'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail From Name')]) }}
{{ Form::hidden('from', 'mail') }}
{{ Form::close() }}
{{ __('Pusher Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting']) }}
{{ Form::label('pusher_app_id', __('Pusher App Id'), ['class' => 'form-control-label']) }} {{ Form::text('pusher_app_id', isset($settings['pusher_app_id']) ? $settings['pusher_app_id'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Pusher App Id')]) }}
{{ Form::label('pusher_app_key', __('Pusher App Key'), ['class' => 'form-control-label']) }} {{ Form::text('pusher_app_key', isset($settings['pusher_app_key']) ? $settings['pusher_app_key'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Pusher App Key')]) }}
{{ Form::label('pusher_app_secret', __('Pusher App Secret'), ['class' => 'form-control-label']) }} {{ Form::text('pusher_app_secret', isset($settings['pusher_app_secret']) ? $settings['pusher_app_secret'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Pusher App Secret')]) }}
{{ Form::label('pusher_app_cluster', __('Pusher App Cluster'), ['class' => 'form-control-label']) }} {{ Form::text('pusher_app_cluster', isset($settings['pusher_app_cluster']) ? $settings['pusher_app_cluster'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Pusher App Cluster')]) }}
{{ Form::hidden('from', 'pusher') }}
{{ 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' => ['settings.store'], 'id' => 'update_setting']) }}
{{ Form::label('currency', __('Currency'), ['class' => 'form-control-label']) }} {{ Form::text('currency',isset($payment_detail['currency']) ? $payment_detail['currency'] : '',['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Currency')]) }}
{{ Form::label('currency_code', __('Currency Code'), ['class' => 'form-control-label']) }} {{ Form::text('currency_code',isset($payment_detail['currency_code']) ? $payment_detail['currency_code'] : '',['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Currency Code')]) }} {{ __('Note : Add currency code as per three-letter ISO code.') }} {{ __(' You can find out how to do that here..') }}

{{ __('Requesting Manual Payment For The Planned Amount For The Subscriptions Plan.') }}

{!! Form::label('inputname', 'Bank Details', ['class' => 'col-form-label']) !!} @php $bank_details = !empty($payment_detail['bank_details']) ? $payment_detail['bank_details'] : ''; @endphp {!! Form::textarea('bank_details', $bank_details, [ 'class' => 'form-control', 'rows' => '6', ]) !!} {{ __('Example : Bank : Bank Name
Account Number : 0000 0000
') }}.
{{ __('Stripe') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'form-control-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-control-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')]) }}
{{ __('Paypal') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ Form::label('paypal_client_id', __('Client ID'), ['class' => 'form-control-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-control-label']) }} {{ Form::text('paypal_secret_key', isset($payment_detail['paypal_secret_key']) ? $payment_detail['paypal_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
{{ __('Paystack') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Flutterwave') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Razorpay') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Mercado Pago') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

@if ($errors->has('mercado_secret_key')) {{ $errors->first('mercado_access_token') }} @endif
{{ __('Paytm') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Mollie') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Skrill') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('CoinGate') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('paymentwall_public_key')) {{ $errors->first('paymentwall_public_key') }} @endif
@if ($errors->has('flutterwave_secret_key')) {{ $errors->first('paymentwall_private_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('toyyibpay_secret_key')) {{ $errors->first('toyyibpay_secret_key') }} @endif
@if ($errors->has('category_code')) {{ $errors->first('category_code') }} @endif
{{ __('Payfast') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('iyzipay') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('sspay_secret_key')) {{ $errors->first('sspay_secret_key') }} @endif
@if ($errors->has('sspay_category_code')) {{ $errors->first('sspay_category_code') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@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
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('benefit_api_key')) {{ $errors->first('benefit_api_key') }} @endif
@if ($errors->has('benefit_secret_key')) {{ $errors->first('benefit_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('cashfree_api_key')) {{ $errors->first('cashfree_api_key') }} @endif
@if ($errors->has('cashfree_secret_key')) {{ $errors->first('cashfree_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('aamarpay_store_id')) {{ $errors->first('aamarpay_store_id') }} @endif
@if ($errors->has('aamarpay_signature_key')) {{ $errors->first('aamarpay_signature_key') }} @endif
@if ($errors->has('aamarpay_description')) {{ $errors->first('aamarpay_description') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('paytr_merchant_id')) {{ $errors->first('paytr_merchant_id') }} @endif
@if ($errors->has('paytr_merchant_key')) {{ $errors->first('paytr_merchant_key') }} @endif
@if ($errors->has('paytr_merchant_salt')) {{ $errors->first('paytr_merchant_salt') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('yookassa_shop_id')) {{ $errors->first('yookassa_shop_id') }} @endif
@if ($errors->has('yookassa_secret_key')) {{ $errors->first('yookassa_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('xendit_api')) {{ $errors->first('xendit_api') }} @endif
@if ($errors->has('xendit_token')) {{ $errors->first('xendit_token') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}

@if ($errors->has('midtrans_secret')) {{ $errors->first('midtrans_secret') }} @endif
{{ Form::hidden('from', 'payment') }}
{{ Form::close() }}
{{ __('ReCaptcha Settings') }}
{{ __('Test to tell human and bots apart by adding Recaptcha setting.') }}
@csrf
{{ Form::open(['route' => 'storage.setting.store', 'enctype' => 'multipart/form-data']) }}
{{ __('Storage Settings') }}
{{ Form::label('local_storage_validation', __('Only Upload Files'), ['class' => ' form-control-label']) }}
{{ Form::label('s3_storage_validation', __('Only Upload Files'), ['class' => ' form-control-label']) }}
{{ Form::label('wasabi_storage_validation', __('Only Upload Files'), ['class' => 'form-control-label']) }}
{{ Form::close() }}
{{ Form::open(['route' => ['seo.settings'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('SEO Settings') }}
{{ Form::label('meta_keywords', __('Meta Keywords'), ['class' => 'form-control-label']) }} {{ Form::text('meta_keywords', isset($settings['meta_keywords']) ? $settings['meta_keywords'] : '', ['class' => 'form-control']) }}
{{ Form::label('meta_image', __('Meta Image'), ['class' => 'form-control-label']) }}
@php $src = isset($settings['meta_image']) && !empty($settings['meta_image']) ? asset(Storage::url('uploads/logo/' . $settings['meta_image'])) : asset(Storage::url('uploads/logo/meta_image.png')); @endphp
{{ Form::label('meta_description', __('Meta Description'), ['class' => 'form-control-label']) }} {{ Form::textarea('meta_description', isset($settings['meta_description']) ? $settings['meta_description'] : '', ['class' => 'form-control', 'rows' => '3', 'data-toggle' => 'autosize']) }}
{{ Form::close() }}
{{ __('Cache Settings') }}
This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.
{{ __('MB') }}
{{ Form::open(['route' => ['settings.chatgptkey'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Chat GPT Key Settings') }}
{{ __('Edit your key details') }}
{{ Form::label('chatgpt_key', __('Chat GPT key'), ['class' => 'form-control-label']) }} {{ Form::text('chatgpt_key', isset($settings['chatgpt_key']) ? $settings['chatgpt_key'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Chatgpt Key Here')]) }}
{{ Form::label('chatgpt_model', __('Chat GPT Model Name'), ['class' => 'form-control-label']) }} {{ Form::text('chatgpt_model', isset($settings['chatgpt_model']) ? $settings['chatgpt_model'] :'', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Chatgpt Model')]) }}
{{ Form::close() }}
@endsection @push('script') {{-- --}} @endpush