@extends('admin.layout') @section('title', 'Settings') @section('content')
Settings
Configure system settings and API credentials.
@if(session('success'))
{{ session('success') }}
@endif
@csrf
Payment Gateway Configuration

Select your preferred payment gateway provider and configure its credentials.

Select which payment gateway to use for all transactions

Exchange Rate Configuration

This exchange rate is used throughout the entire system including:

  • Home page live rate display and calculator
  • Exchange page calculations
  • User dashboard rate display and quick exchange
  • All order calculations and conversions

Text displayed above the exchange rate on homepage (e.g., "Live Rate", "Current Rate", "Today's Rate")

Current rate: 1 GHS = {{ $settings['exchange_rate'] }} CNY

Changes take effect immediately across all pages

@error('exchange_rate')

{{ $message }}

@enderror
Additional Exchange Rates (Homepage Display)
These rates are shown in the "RMB Rates Right Now" section on the homepage
SMS Configuration

Configure your SMS service provider to enable SMS notifications to customers.

Select your preferred SMS service provider

Get your API key from bulksmsghana.com, smsonlinegh.com, or mnotify.com

Sender ID that appears on SMS (max 11 characters)

@if(($settings['sms_provider'] ?? 'bulksmsghana') === 'smsonlinegh')

⚠️ SMS Online GH requires sender ID approval.
If you get "HSHK_ERR_MR_MESSAGE" error:
1. Contact SMS Online GH to get your default sender ID
2. Or request approval for custom sender ID (takes 24-48hrs)
3. Or switch to BulkSMS Ghana (works immediately)

@endif

Phone number to receive SMS alerts for withdrawals and exchanges (not top-ups)

Email address to receive alerts for withdrawals and exchanges (not top-ups)

Test SMS Configuration

Send a test SMS to verify your configuration is working correctly.

Provider: {{ $settings['sms_provider'] ?? 'Not Set' }}
API Key: {{ !empty($settings['bulksms_api_key']) ? '✓ Configured' : '✗ Not Set' }}
Sender ID: {{ $settings['bulksms_sender_id'] ?? 'Not Set' }}
Admin Phone: {{ $settings['admin_alert_phone'] ?? 'Not Set' }}
Admin Email: {{ $settings['admin_alert_email'] ?? 'Not Set' }}
Email Configuration

Configure your email service provider to send transactional emails to customers.

Choose your preferred email service provider

Email address that appears as sender

Name that appears as sender

Google OAuth Configuration

Enable "Sign in with Google" functionality for your users. Get your credentials from Google Cloud Console.

OAuth 2.0 Client ID from Google Cloud Console

OAuth 2.0 Client Secret - Keep this secure!

Setup Instructions:
  1. Go to Google Cloud Console
  2. Create a new OAuth 2.0 Client ID (Web application)
  3. Add authorized redirect URI: {{ url('/auth/google/callback') }}
  4. Copy the Client ID and Client Secret here
  5. Enable the toggle above to activate Google login
  6. Save settings and test the "Sign in with Google" button
Tawk.to Live Chat Configuration
@if(!empty($settings['tawk_property_id']))
Tawk.to is configured and active

The chat widget should appear on all pages. If not, clear your browser cache.

@else
Tawk.to is not configured

Enter your Property ID and Widget ID below to enable live chat.

@endif

Add Tawk.to live chat widget to all pages of your website for real-time customer support.

Your unique Tawk.to Property ID (found in your Tawk.to dashboard)

Widget ID (usually "default" unless you have multiple widgets)

Setup Instructions:
  1. Sign up for free at tawk.to
  2. Create a new property for your website
  3. Go to Administration → Channels → Chat Widget
  4. Copy your Property ID and Widget ID from the embed code
  5. Paste them here and save settings
  6. The chat widget will appear on all pages automatically
Wallet Features Control

Enable or disable wallet features for customers. When disabled, the buttons will be hidden from the customer dashboard.

Important Note
When you disable these features, the corresponding buttons will immediately disappear from all customer dashboards. Customers will not be able to access these features until you re-enable them.
@endsection