初始化

This commit is contained in:
2026-08-08 18:27:38 +08:00
parent efc150c937
commit 060eb79c09
336 changed files with 24613 additions and 15 deletions
@@ -0,0 +1,30 @@
@extends('admin.layout')
@section('title', '留言管理')
@section('page-title', '留言管理')
@section('content')
<table class="data-table">
<thead><tr><th>姓名</th><th>邮箱</th><th>主题</th><th>时间</th><th class="col-op">操作</th></tr></thead>
<tbody>
@forelse ($messages as $m)
<tr>
<td>{{ $m->name }}</td>
<td>{{ $m->email }}</td>
<td>{{ $m->subject }}</td>
<td class="muted">{{ $m->created_at->format('Y-m-d') }}</td>
<td class="row-actions">
<a href="{{ route('admin.contacts.show', $m) }}" class="btn btn-sm"><x-icon name="edit" :size="16"/></a>
<form method="POST" action="{{ route('admin.contacts.destroy', $m) }}" onsubmit="return confirm('确认删除该留言?')">
@csrf @method('DELETE')
<button class="btn btn-sm btn-danger"><x-icon name="trash" :size="16"/></button>
</form>
</td>
</tr>
@empty
<tr><td colspan="5" class="muted">暂无留言。</td></tr>
@endforelse
</tbody>
</table>
{{ $messages->links('pagination::bootstrap-5') }}
@endsection