@extends('layouts.app') @section('title', _lang('Platform Settings')) @section('content')

{{ _lang('Platform Settings') }}

{{ _lang('Global application settings for the platform.') }}

@include('partials.alerts')
@csrf @method('PUT')
{{ _lang('General') }}
@if (system_logo_url()) logo @else {{ brand_name() }} @endif
{{ _lang('PNG/SVG, max 2MB. Leave empty to keep the brand name text.') }} @if (system_logo_url())
@endif
{{ _lang('Localization') }}
{{ _lang('SMS Gateway') }} ({{ _lang('used by all organizations') }})
{{ _lang('bKash Payment (SMS Credit)') }}
{{ _lang('Sandbox by default. Use the live URL in production.') }}
{{ _lang('Telegram Alerts') }} ({{ _lang('new-organization signup notifications') }})
{{ _lang('From @BotFather. Create a bot, copy its token.') }}
{{ _lang('Your user/group/channel ID. Add the bot there first; get the ID from @userinfobot.') }}
{{-- Google Analytics --}}
{{ _lang('Google Analytics') }} ({{ _lang('public website') }})
{{ _lang('From analytics.google.com → GA4 property → Web data stream. Once saved, the gtag script loads on every public website page.') }}
{{ _lang('Firebase Push Notifications') }}
@if ($settings['firebase_configured']) {{ _lang('Configured') }} @else {{ _lang('Not configured') }} @endif
Firebase Console → Project settings → Project ID
Firebase Console → Project settings → Service accounts → "Generate new private key" → ডাউনলোড করা JSON ফাইলের পুরো লেখা এখানে পেস্ট করুন। @if ($settings['firebase_service_account_json'])
✓ JSON সংরক্ষিত আছে — বদলাতে চাইলে নতুন করে পেস্ট করুন, নাহলে খালি রাখুন।
@endif
{{ _lang('Access') }}
{{-- Firebase test (separate form — uses the SAVED credentials, so save first) --}}
{{ _lang('Test Firebase connection') }}
সেভ করার পর এখানে চাপ দিয়ে যাচাই করুন credential ঠিক আছে কিনা।
@csrf
@endsection