@extends('layouts.admin') @section('title', 'Site Settings') @section('breadcrumb') @endsection @section('content')

General Settings

@csrf
@php $groups = $settings->groupBy('group'); @endphp @foreach($groups as $group => $groupSettings)

{{ ucfirst($group) }}

@foreach($groupSettings as $setting)
@if($setting->type === 'text') @if($setting->key === 'live_chat_active') @else @endif @if($setting->key === 'scrolling_text') Separate multiple items with a pipe character (|). Example: Item 1 | Item 2 | Item 3 @endif @elseif($setting->type === 'textarea') @elseif($setting->type === 'password') @if($setting->key === 'openai_api_key') Leave empty to use OPENAI_API_KEY from .env file. Use 'mock' to simulate AI. @endif @if($setting->key === 'openrouter_api_key') Use 'mock' to simulate AI. Fallback if OpenAI/ChatGPT keys fail. @endif @elseif($setting->type === 'image') @if($setting->value)
{{ $setting->label }}
@endif
@endif
@endforeach
@endforeach
@endsection @push('scripts') @endpush