{{-- 文件功能:后台开发日志列表页(仅 id=1 超级管理员可访问) 展示所有日志(含草稿),支持发布/编辑/删除操作 @extends admin.layouts.app --}} @extends('admin.layouts.app') @section('title', '开发日志管理') @section('content')

📋 开发日志管理

管理版本更新记录,发布后可在大厅消息区通知用户

+ 新增日志
{{-- 日志列表 --}}
@forelse($logs as $log) @empty @endforelse
版本号 标题 类型 状态 发布时间 操作
v{{ $log->version }} {{ $log->title }} @php $typeConfig = \App\Models\DevChangelog::TYPE_CONFIG[$log->type] ?? null; $colorMap = [ 'emerald' => 'bg-emerald-100 text-emerald-700', 'rose' => 'bg-rose-100 text-rose-700', 'blue' => 'bg-blue-100 text-blue-700', 'slate' => 'bg-slate-100 text-slate-700', ]; @endphp {{ $typeConfig['label'] ?? '其他' }} @if ($log->is_published) ✅ 已发布 @else 🔒 草稿 @endif {{ $log->published_at?->format('Y-m-d H:i') ?? '—' }}
编辑
@csrf @method('DELETE')

📭

还没有任何日志,点击右上角「新增日志」开始吧

@if ($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection