Files
KnowledgeBase/resources/views/filament/pages/search-page.blade.php
Knowledge Base System acf549c43c feat: 初始化知识库系统项目
- 实现基于 Laravel 11 和 Filament 3.X 的文档管理系统
- 添加用户认证和分组管理功能
- 实现文档上传、分类和权限控制
- 集成 Word 文档自动转换为 Markdown
- 集成 Meilisearch 全文搜索引擎
- 实现文档在线预览功能
- 添加安全日志和审计功能
- 完整的简体中文界面
- 包含完整的项目文档和部署指南

技术栈:
- Laravel 11.x
- Filament 3.X
- Meilisearch 1.5+
- Pandoc 文档转换
- Redis 队列系统
- Pest PHP 测试框架
2025-12-05 14:44:44 +08:00

39 lines
1.3 KiB
PHP

<x-filament-panels::page>
<div class="space-y-6">
{{-- 搜索表单 --}}
<x-filament::card>
<form wire:submit.prevent="search">
{{ $this->form }}
<div class="mt-6 flex gap-3">
<x-filament::button type="submit" icon="heroicon-o-magnifying-glass">
搜索
</x-filament::button>
<x-filament::button type="button" color="gray" wire:click="clearSearch">
清空
</x-filament::button>
</div>
</form>
</x-filament::card>
{{-- 搜索结果 --}}
@if($hasSearched)
<x-filament::card>
<div class="space-y-4">
<h3 class="text-lg font-semibold">
搜索结果
@if($searchQuery)
<span class="text-sm font-normal text-gray-500">
- 关键词: "{{ $searchQuery }}"
</span>
@endif
</h3>
{{ $this->table }}
</div>
</x-filament::card>
@endif
</div>
</x-filament-panels::page>