@extends('admin.layouts.app') @section('title', '系统配置') @section('page_title', '系统配置') @section('content')

系统配置已经从静态骨架切到数据库读取,当前已支持基础编辑、保存和缓存刷新。

当前系统配置列表已接入缓存读取。
当前配置分组数:{{ $groupedCount }}
渠道与支付配置
@foreach($systemSettings->groupBy('group') as $group => $items)

配置分组:{{ $group }}

@foreach($items as $item) @php $isEditing = $editingConfigId === $item->id; $configName = $isEditing ? old('config_name', $item->config_name) : $item->config_name; $configValue = $isEditing ? old('config_value', $item->config_value) : $item->config_value; $valueType = $isEditing ? old('value_type', $item->value_type) : $item->value_type; $autoload = $isEditing ? old('autoload', $item->autoload) : $item->autoload; $remark = $isEditing ? old('remark', $item->remark) : $item->remark; @endphp @csrf @endforeach
配置键 名称 配置值 类型 自动加载 备注 操作
{{ $item->config_key }} @if($valueType === 'json') @if($isEditing && $errors->has('config_value')) @endif @elseif($valueType === 'boolean') @elseif($valueType === 'number') @else @endif
@endforeach @endsection