@extends('layouts.app') @section('page-title') {{ __('System Settings') }} @endsection @section('breadcrumb') @endsection @php if (\Auth::user()->type == 'super admin') { $main_logo = getSettingsValByName('logo'); $main_favicon = getSettingsValByName('favicon'); $main_light_logo = getSettingsValByName('light_logo'); } else { $main_logo = getSettingsValByName('company_logo'); $main_favicon = getSettingsValByName('company_favicon'); $main_light_logo = getSettingsValByName('company_light_logo'); } $activeTab = session('tab', 'user_profile_settings'); $profile = asset(Storage::url('upload/profile/avatar.png')); $default_logo = asset(Storage::url('upload/logo/logo.png')); $default_favicon = asset(Storage::url('upload/logo/favicon.png')); $default_light_logo = asset(Storage::url('upload/logo/light_logo.png')); $subscriptionData = currentSubscription(); @endphp @section('content')
@if (Gate::check('manage account settings'))
{{ Form::model($loginUser, ['route' => ['setting.account'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
user-image
{{ Form::label('name', __('Name'), ['class' => 'form-label']) }} {{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => __('Enter your name'), 'required' => 'required']) }}
{{ Form::label('email', __('Email Address'), ['class' => 'form-label']) }} {{ Form::text('email', null, ['class' => 'form-control', 'placeholder' => __('Enter your email'), 'required' => 'required']) }}
{{ Form::label('phone_number', __('Phone Number'), ['class' => 'form-label']) }} {{ Form::text('phone_number', null, ['class' => 'form-control', 'placeholder' => __('Enter your Phone Number')]) }} {{ __('Please enter the number with country code. e.g., +91XXXXXXXXXX') }}
{{ Form::label('profile', __('Profile'), ['class' => 'form-label']) }} {{ Form::file('profile', ['class' => 'form-control']) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage password settings'))
{{ Form::model($loginUser, ['route' => ['setting.password'], 'method' => 'post']) }}
{{ Form::label('current_password', __('Current Password'), ['class' => 'form-label']) }} {{ Form::password('current_password', ['class' => 'form-control', 'placeholder' => __('Enter your current password'), 'required' => 'required']) }}
{{ Form::label('new_password', __('New Password'), ['class' => 'form-label']) }} {{ Form::password('new_password', ['class' => 'form-control', 'placeholder' => __('Enter your new password'), 'required' => 'required']) }}
{{ Form::label('confirm_password', __('Confirm New Password'), ['class' => 'form-label']) }} {{ Form::password('confirm_password', ['class' => 'form-control', 'placeholder' => __('Enter your confirm new password'), 'required' => 'required']) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage general settings'))
{{ Form::model($settings, ['route' => ['setting.general'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('application_name', __('Application Name'), ['class' => 'form-label']) }} {{ Form::text('application_name', !empty($settings['app_name']) ? $settings['app_name'] : env('APP_NAME'), ['class' => 'form-control', 'placeholder' => __('Enter your application name'), 'required' => 'required']) }}
{{ Form::label('copyright', __('Copyright'), ['class' => 'form-label']) }} {{ Form::text('copyright', $settings['copyright'], ['class' => 'form-control', 'placeholder' => __('Enter copyright ')]) }}
{{ Form::label('logo', __('Logo'), ['class' => 'form-label']) }} {{ Form::file('logo', ['class' => 'form-control', 'accept' => 'image/png']) }}
{{ Form::label('favicon', __('Favicon'), ['class' => 'form-label']) }} {{ Form::file('favicon', ['class' => 'form-control', 'accept' => 'image/png']) }}
{{ Form::label('light_logo', __('Light Logo'), ['class' => 'form-label']) }} {{ Form::file('light_logo', ['class' => 'form-control', 'accept' => 'image/png']) }}
@if (\Auth::user()->type == 'super admin')
{{ Form::label('landing_logo', __('Landing Page Logo'), ['class' => 'form-label']) }} {{ Form::file('landing_logo', ['class' => 'form-control', 'accept' => 'image/png']) }}
{{ Form::label('landing_logo', __('Owner Email Verification'), ['class' => 'form-label']) }}
{{ Form::label('landing_logo', __('Registration Page'), ['class' => 'form-label']) }}
{{ Form::label('landing_logo', __('Landing Page'), ['class' => 'form-label']) }}
{{ Form::label('pricing_feature', __('Pricing Feature'), ['class' => 'form-label']) }}
@endif
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage company settings'))
{{ Form::model($settings, ['route' => ['setting.company'], 'method' => 'post']) }}
{{ Form::label('company_name', __('Name'), ['class' => 'form-label']) }} {{ Form::text('company_name', $settings['company_name'], ['class' => 'form-control', 'placeholder' => __('Enter company name')]) }}
{{ Form::label('company_email', __('Email'), ['class' => 'form-label']) }} {{ Form::text('company_email', $settings['company_email'], ['class' => 'form-control', 'placeholder' => __('Enter company email')]) }}
{{ Form::label('company_phone', __('Phone Number'), ['class' => 'form-label']) }} {{ Form::text('company_phone', $settings['company_phone'], ['class' => 'form-control', 'placeholder' => __('Enter company phone')]) }}
{{ Form::label('company_address', __('Address'), ['class' => 'form-label']) }} {{ Form::textarea('company_address', $settings['company_address'], ['class' => 'form-control', 'rows' => '2']) }}
{{ Form::label('CURRENCY_SYMBOL', __('Currency Icon'), ['class' => 'form-label']) }} {{ Form::text('CURRENCY_SYMBOL', $settings['CURRENCY_SYMBOL'], ['class' => 'form-control', 'placeholder' => __('Enter currency symbol')]) }}
{{ Form::label('timezone', __('Timezone'), ['class' => 'form-label text-dark']) }}
{{ Form::label('document_number_prefix', __('Document Number Prefix'), ['class' => 'form-label']) }} {{ Form::text('document_number_prefix', $settings['document_number_prefix'], ['class' => 'form-control', 'placeholder' => __('Enter invoice number prefix')]) }}
{{ Form::label('reminder_number_prefix', __('Reminder Number Prefix'), ['class' => 'form-label']) }} {{ Form::text('reminder_number_prefix', $settings['reminder_number_prefix'], ['class' => 'form-control', 'placeholder' => __('Enter expense number prefix')]) }}
{{ Form::label('company_zipcode', __('System Date Format'), ['class' => 'form-label']) }}
{{ Form::label('company_zipcode', __('System Time Format'), ['class' => 'form-label']) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage email settings'))
{{ Form::model($settings, ['route' => ['setting.smtp'], 'method' => 'post']) }}
{{ Form::label('sender_name', __('Sender Name'), ['class' => 'form-label']) }} {{ Form::text('sender_name', $settings['FROM_NAME'], ['class' => 'form-control', 'placeholder' => __('Enter sender name')]) }}
{{ Form::label('sender_email', __('Sender Email'), ['class' => 'form-label']) }} {{ Form::text('sender_email', $settings['FROM_EMAIL'], ['class' => 'form-control', 'placeholder' => __('Enter sender email')]) }}
{{ Form::label('server_driver', __('SMTP Driver'), ['class' => 'form-label']) }} {{ Form::text('server_driver', $settings['SERVER_DRIVER'], ['class' => 'form-control', 'placeholder' => __('Enter smtp driver')]) }}
{{ Form::label('server_host', __('SMTP Host'), ['class' => 'form-label']) }} {{ Form::text('server_host', $settings['SERVER_HOST'], ['class' => 'form-control ', 'placeholder' => __('Enter smtp host')]) }}
{{ Form::label('server_username', __('SMTP Username'), ['class' => 'form-label']) }} {{ Form::text('server_username', $settings['SERVER_USERNAME'], ['class' => 'form-control', 'placeholder' => __('Enter smtp username')]) }}
{{ Form::label('server_password', __('SMTP Password'), ['class' => 'form-label']) }} {{ Form::text('server_password', $settings['SERVER_PASSWORD'], ['class' => 'form-control', 'placeholder' => __('Enter smtp password')]) }}
{{ Form::label('server_encryption', __('SMTP Encryption'), ['class' => 'form-label']) }} {{ Form::text('server_encryption', $settings['SERVER_ENCRYPTION'], ['class' => 'form-control', 'placeholder' => __('Enter smtp encryption')]) }}
{{ Form::label('server_port', __('SMTP Port'), ['class' => 'form-label']) }} {{ Form::text('server_port', $settings['SERVER_PORT'], ['class' => 'form-control', 'placeholder' => __('Enter smtp port')]) }}
{{ __('Test Mail') }} {{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage payment settings'))
{{ Form::model($settings, ['route' => ['setting.payment'], 'method' => 'post']) }}
{{ Form::label('CURRENCY_SYMBOL', __('Currency Icon'), ['class' => 'form-label']) }} {{ Form::text('CURRENCY_SYMBOL', $settings['CURRENCY_SYMBOL'], ['class' => 'form-control', 'placeholder' => __('Enter currency icon'), 'required']) }}
{{ Form::label('CURRENCY', __('Currency Code'), ['class' => 'form-label']) }} {{ Form::text('CURRENCY', $settings['CURRENCY'], ['class' => 'form-control font-style', 'placeholder' => __('Enter currency code'), 'required']) }}

{{-- ------------------------Stripe Payment settings------------------------------- --}}
{{ Form::label('stripe_payment', __('Stripe Payment'), ['class' => 'form-label']) }}
{{ Form::label('stripe_key', __('Account Key'), ['class' => 'form-label']) }} {{ Form::text('stripe_key', $settings['STRIPE_KEY'], ['class' => 'form-control', 'placeholder' => __('Enter stripe key')]) }}
{{ Form::label('stripe_secret', __('Account Secret Key'), ['class' => 'form-label']) }} {{ Form::text('stripe_secret', $settings['STRIPE_SECRET'], ['class' => 'form-control ', 'placeholder' => __('Enter stripe secret')]) }}

{{-- ------------------------Paypal Payment settings------------------------------- --}}
{{ Form::label('paypal_payment', __('Paypal Payment'), ['class' => 'form-label']) }}
{{ Form::label('paypal_mode', __('Account Mode'), ['class' => 'form-label me-2']) }}
{{ Form::label('paypal_client_id', __('Account Client ID'), ['class' => 'form-label']) }} {{ Form::text('paypal_client_id', $settings['paypal_client_id'], ['class' => 'form-control', 'placeholder' => __('Enter client id')]) }}
{{ Form::label('paypal_secret_key', __('Account Secret Key'), ['class' => 'form-label']) }} {{ Form::text('paypal_secret_key', $settings['paypal_secret_key'], ['class' => 'form-control ', 'placeholder' => __('Enter secret key')]) }}

{{-- ------------------------Bank Transfer settings------------------------------- --}}
{{ Form::label('bank_transfer_payment', __('Bank Transfer Payment'), ['class' => 'form-label']) }}
{{ Form::label('bank_name', __('Bank Name'), ['class' => 'form-label']) }} {{ Form::text('bank_name', $settings['bank_name'], ['class' => 'form-control', 'placeholder' => __('Enter bank name')]) }}
{{ Form::label('bank_holder_name', __('Bank Holder Name'), ['class' => 'form-label']) }} {{ Form::text('bank_holder_name', $settings['bank_holder_name'], ['class' => 'form-control', 'placeholder' => __('Enter bank holder name')]) }}
{{ Form::label('bank_account_number', __('Bank Account Number'), ['class' => 'form-label']) }} {{ Form::text('bank_account_number', $settings['bank_account_number'], ['class' => 'form-control', 'placeholder' => __('Enter bank account number')]) }}
{{ Form::label('bank_ifsc_code', __('Bank IFSC'), ['class' => 'form-label']) }} {{ Form::text('bank_ifsc_code', $settings['bank_ifsc_code'], ['class' => 'form-control', 'placeholder' => __('Enter bank ifsc code')]) }}
{{ Form::label('bank_other_details', __('Other Details'), ['class' => 'form-label']) }} {{ Form::textarea('bank_other_details', $settings['bank_other_details'], ['class' => 'form-control', 'rows' => 1, 'placeholder' => __('Enter bank other details')]) }}

{{-- ------------------------Flutterwave settings------------------------------- --}}
{{ Form::label('flutterwave_payment', __('Flutterwave Payment'), ['class' => 'form-label']) }}
{{ Form::label('flutterwave_public_key', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('flutterwave_public_key', $settings['flutterwave_public_key'], ['class' => 'form-control', 'placeholder' => __('Enter flutterwave public key')]) }}
{{ Form::label('flutterwave_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('flutterwave_secret_key', $settings['flutterwave_secret_key'], ['class' => 'form-control', 'placeholder' => __('Enter flutterwave secret key')]) }}

{{-- ------------------------Paystack settings------------------------------- --}}
{{ Form::label('paystack_payment', __('Paystack Payment'), ['class' => 'form-label']) }}
{{ Form::label('paystack_public_key', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('paystack_public_key', $settings['paystack_public_key'], ['class' => 'form-control', 'placeholder' => __('Enter Paystack public key')]) }}
{{ Form::label('paystack_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('paystack_secret_key', $settings['paystack_secret_key'], ['class' => 'form-control', 'placeholder' => __('Enter Paystack secret key')]) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage seo settings'))
{{ Form::model($settings, ['route' => ['setting.site.seo'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('meta_seo_title', __('Meta Title'), ['class' => 'form-label']) }} {{ Form::text('meta_seo_title', $settings['meta_seo_title'], ['class' => 'form-control', 'placeholder' => __('Enter meta SEO title'), 'required' => 'required']) }}
{{ Form::label('meta_seo_keyword', __('Meta Keyword'), ['class' => 'form-label']) }} {{ Form::text('meta_seo_keyword', $settings['meta_seo_keyword'], ['class' => 'form-control', 'placeholder' => __('Enter meta SEO keyword'), 'required' => 'required']) }}
{{ Form::label('meta_seo_description', __('Meta Description'), ['class' => 'form-label']) }} {{ Form::textarea('meta_seo_description', $settings['meta_seo_description'], ['class' => 'form-control', 'placeholder' => __('Enter meta SEO description'), 'required' => 'required', 'rows' => '2']) }}
{{ Form::label('meta_seo_image', __('Meta Image'), ['class' => 'form-label']) }} {{ Form::file('meta_seo_image', ['class' => 'form-control']) }}
@if (!empty($settings['meta_seo_image']))
@endif
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage google recaptcha settings'))
{{ Form::model($settings, ['route' => ['setting.google.recaptcha'], 'method' => 'post']) }}
{{ Form::label('google_recaptcha', __('Google ReCaptch Enable'), ['class' => 'form-label']) }}
{{ Form::label('recaptcha_key', __('Recaptcha Key'), ['class' => 'form-label']) }} {{ Form::text('recaptcha_key', $settings['recaptcha_key'], ['class' => 'form-control', 'placeholder' => __('Enter recaptcha key')]) }}
{{ Form::label('recaptcha_secret', __('Recaptcha Secret'), ['class' => 'form-label']) }} {{ Form::text('recaptcha_secret', $settings['recaptcha_secret'], ['class' => 'form-control ', 'placeholder' => __('Enter recaptcha secret')]) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage 2FA settings'))
{{ Form::model($settings, ['route' => ['setting.twofa.enable'], 'method' => 'post']) }}
@if (empty(\Auth::user()->twofa_secret)) @else
{{ __('2-factors authentication is currently enable.') }} {{ __('click to disabled') }}
@endif
@if (empty(\Auth::user()->twofa_secret))
  1. {!! __('Open your OTP app and scan the following QR-code') !!}

    2FA

  2. {{ __('Generate a One Time Password (OTP) and enter the value below.') }}
    @if ($errors->has('otp')) {{ $errors->first('otp') }} @endif
@endif
@if (empty(\Auth::user()->twofa_secret))
{{ Form::submit(__('Verify'), ['class' => 'btn btn-secondary btn-rounded']) }}
@endif {{ Form::close() }}
@endif @if (Gate::check('manage storage settings'))
{{ Form::model($settings, ['route' => ['storage.setting'], 'method' => 'post']) }}

{{ Form::label('local_file_type', __('File Type'), ['class' => 'form-label']) }} {!! Form::select( 'local_file_type[]', FilesExtension(), !empty($settings['local_file_type']) ? explode(',', $settings['local_file_type']) : null, [ 'class' => 'form-control select2', 'multiple' => true, ], ) !!}

{{ Form::label('aws_s3_key', __('S3 Key'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_key', $settings['aws_s3_key'], ['class' => 'form-control', 'placeholder' => __('Enter key')]) }}
{{ Form::label('aws_s3_secret', __('S3 Secret'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_secret', $settings['aws_s3_secret'], ['class' => 'form-control', 'placeholder' => __('Enter Secret')]) }}
{{ Form::label('aws_s3_region', __('S3 region'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_region', $settings['aws_s3_region'], ['class' => 'form-control', 'placeholder' => __('Enter region')]) }}
{{ Form::label('aws_s3_bucket', __('S3 bucket'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_bucket', $settings['aws_s3_bucket'], ['class' => 'form-control', 'placeholder' => __('Enter bucket')]) }}
{{ Form::label('aws_s3_url', __('S3 URL'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_url', $settings['aws_s3_url'], ['class' => 'form-control', 'placeholder' => __('Enter URL')]) }}
{{ Form::label('aws_s3_endpoint', __('S3 Endpoint'), ['class' => 'form-label']) }} {{ Form::text('aws_s3_endpoint', $settings['aws_s3_endpoint'], ['class' => 'form-control', 'placeholder' => __('Enter Endpoint')]) }}
{{ Form::label('aws_s3_file_type', __('File Type'), ['class' => 'form-label']) }} {!! Form::select( 'aws_s3_file_type[]', FilesExtension(), !empty($settings['aws_s3_file_type']) ? explode(',', $settings['aws_s3_file_type']) : null, [ 'class' => 'form-control select2', 'multiple' => true, ], ) !!}

{{ Form::label('wasabi_key', __('Wasabi Key'), ['class' => 'form-label']) }} {{ Form::text('wasabi_key', $settings['wasabi_key'], ['class' => 'form-control', 'placeholder' => __('Enter key')]) }}
{{ Form::label('wasabi_secret', __('Wasabi Secret'), ['class' => 'form-label']) }} {{ Form::text('wasabi_secret', $settings['wasabi_secret'], ['class' => 'form-control', 'placeholder' => __('Enter Secret')]) }}
{{ Form::label('wasabi_region', __('Wasabi region'), ['class' => 'form-label']) }} {{ Form::text('wasabi_region', $settings['wasabi_region'], ['class' => 'form-control', 'placeholder' => __('Enter region')]) }}
{{ Form::label('wasabi_bucket', __('Wasabi bucket'), ['class' => 'form-label']) }} {{ Form::text('wasabi_bucket', $settings['wasabi_bucket'], ['class' => 'form-control', 'placeholder' => __('Enter bucket')]) }}
{{ Form::label('wasabi_url', __('Wasabi URL'), ['class' => 'form-label']) }} {{ Form::text('wasabi_url', $settings['wasabi_url'], ['class' => 'form-control', 'placeholder' => __('Enter URL')]) }}
{{ Form::label('wasabi_file_type', __('File Type'), ['class' => 'form-label']) }} {!! Form::select( 'wasabi_file_type[]', FilesExtension(), !empty($settings['wasabi_file_type']) ? explode(',', $settings['wasabi_file_type']) : null, [ 'class' => 'form-control select2', 'multiple' => true, ], ) !!}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @if (Gate::check('manage twilio settings'))
{{ Form::model($settings, ['route' => ['twilio.settings'], 'method' => 'post']) }}
{{ Form::label('twilio_sid', __('twilio SID'), ['class' => 'form-label']) }} {{ Form::text('twilio_sid', $settings['twilio_sid'], ['class' => 'form-control mb-2', 'placeholder' => __('Enter SID')]) }}
{{ Form::label('twilio_token', __('twilio Token'), ['class' => 'form-label']) }} {{ Form::text('twilio_token', $settings['twilio_token'], ['class' => 'form-control mb-2', 'placeholder' => __('Enter Token')]) }}
{{ Form::label('twilio_from_number', __('twilio From Number'), ['class' => 'form-label']) }} {{ Form::text('twilio_from_number', $settings['twilio_from_number'], ['class' => 'form-control mb-2', 'placeholder' => __('Enter From Numner')]) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endif @can('manage openai settings')
{{ Form::model($settings, ['route' => ['openai.settings'], 'method' => 'POST']) }}
{{ Form::label('openai_secret_key', __('Open ai secret key'), ['class' => 'form-label']) }} {{ Form::text('openai_secret_key', $settings['openai_secret_key'] ?? null, [ 'class' => 'form-control mb-2', 'placeholder' => __('Enter open ai secret key'), 'id' => 'openai_secret_key', ]) }}
{{ Form::label('openai_module', __('Enable OpenAI Module'), ['class' => 'form-label']) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{{ Form::close() }}
@endcan
@endsection @push('script-page') @endpush