@extends('layouts.admin') @section('title', $item->exists ? '编辑工具' : '新建工具') @section('head') @include('admin.partials.modern-form-head') @endsection @section('content')

{{ $item->exists ? '编辑工具' : '新建工具' }}

@if($item->exists)
@csrf
@csrf
@endif

* 为必填项

@csrf @if($method !== 'POST') @method($method) @endif

基础信息

填写工具的核心资料,便于检索、筛选和展示。

建议使用产品全名,避免缩写歧义。
默认自动生成,可手动调整为英文短链。
示例:`free`、`freemium`、`paid`。
用于列表卡片,建议 50-120 字。

内容编辑

左侧编辑 Markdown,右侧实时预览,支持一键上传图片。

@include('admin.partials.markdown-editor', [ 'field' => 'description', 'value' => $item->description, 'label' => '详细描述(Markdown)', 'required' => false, 'rows' => 16, 'previewId' => 'tool-description-preview', 'hint' => '可包含功能亮点、使用场景和注意事项。', ])
高级设置(SEO 与补充字段)
建议先检查右侧预览,再保存。
@endsection @section('scripts') @include('admin.partials.modern-form-scripts') @endsection