@extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @php $setting = App\Models\Utility::getAdminPaymentSetting(); 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')]) }} @error('app_name') {{ $message }} @enderror
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'form-label']) }} {{ Form::text('footer_text', env('FOOTER_TEXT'), ['class' => 'form-control', 'placeholder' => __('Footer Text')]) }} @error('footer_text') {{ $message }} @enderror
@php $DEFAULT_LANG = env('DEFAULT_LANG') ? env('DEFAULT_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') }}
{{ Form::open(['route' => 'email.settings.store', 'method' => 'post']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver', env('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', env('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', env('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', env('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', env('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', env('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', env('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', env('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')]) }} {{ __('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', env('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
@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,array('route'=>'settings.chatgptkey','method'=>'post'))}}
{{ __('Chat GPT Key Settings') }}
{{-- {{ __('Edit your key details') }} --}} {{--
{{ Form::label('enable_cookie', __('Enable ChatGPT'), ['class' => 'col-form-label p-0 fw-bold me-3']) }}
--}}
{{ 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::close() }}
@endsection @push('scripts') @if ($payment_detail['enable_cookie'] != 'on') @endif @endpush @if ($color == 'theme-3') @endif @if ($color == 'theme-2') @endif @if ($color == 'theme-4') @endif @if ($color == 'theme-1') @endif