@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

基础信息

先完成标题、摘要、来源和状态,确保资讯可正确归档。

内容编辑

正文为必填,系统会按统一规则渲染 Markdown 并用于前台展示。

@include('admin.partials.markdown-editor', [ 'field' => 'body', 'value' => $item->body, 'label' => '正文内容(Markdown)', 'required' => true, 'rows' => 18, 'minlength' => 100, 'previewId' => 'article-body-preview', 'hint' => '后端要求正文不少于 100 字符,请优先完善结构化内容。', ])
高级设置(SEO 与补充字段)
正文建议包含结论段,便于前台摘要抓取。
@endsection @section('scripts') @include('admin.partials.modern-form-scripts') @endsection