优化功能
This commit is contained in:
@@ -2,20 +2,27 @@
|
||||
|
||||
@section('title', '来源白名单管理')
|
||||
|
||||
@section('head')
|
||||
@include('admin.partials.modern-index-head')
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex flex-column flex-lg-row gap-2 align-items-lg-center justify-content-between">
|
||||
<div class="card modern-index-toolbar mb-3">
|
||||
<div class="card-body d-flex flex-column flex-lg-row gap-3 align-items-lg-center justify-content-between">
|
||||
<form method="get" action="{{ route('admin.sources.index') }}" class="d-flex flex-column flex-md-row gap-2 w-100">
|
||||
<input class="form-control" type="text" name="q" value="{{ $filters['q'] ?? '' }}" placeholder="搜索来源名称 / 域名">
|
||||
<button class="btn btn-primary" type="submit"><i class="bi bi-search me-1"></i>搜索</button>
|
||||
</form>
|
||||
<a class="btn btn-success" href="{{ route('admin.sources.create') }}"><i class="bi bi-plus-circle me-1"></i>新建来源</a>
|
||||
</div>
|
||||
<div class="card-footer bg-transparent border-0 pt-0">
|
||||
<div class="toolbar-meta">共 {{ number_format($items->total()) }} 条来源记录</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card modern-index-card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table">
|
||||
<table class="table table-vcenter card-table modern-index-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
@@ -29,8 +36,8 @@
|
||||
<tbody>
|
||||
@forelse($items as $item)
|
||||
<tr>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>{{ $item->domain }}</td>
|
||||
<td class="modern-index-title">{{ $item->name }}</td>
|
||||
<td><code>{{ $item->domain }}</code></td>
|
||||
<td>{{ $item->type }}</td>
|
||||
<td>{{ $item->trust_level?->value ?? '-' }}</td>
|
||||
<td>
|
||||
@@ -40,10 +47,14 @@
|
||||
<span class="badge bg-gray-200 text-dark">否</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-end"><a class="btn btn-sm btn-outline-primary" href="{{ route('admin.sources.edit', $item) }}">编辑</a></td>
|
||||
<td class="text-end">
|
||||
<a class="btn btn-sm btn-outline-primary" href="{{ route('admin.sources.edit', $item) }}">编辑</a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="6" class="text-center text-muted py-4">暂无来源数据</td></tr>
|
||||
<tr>
|
||||
<td colspan="6" class="text-center text-muted py-5">暂无来源数据,先新增一条内容吧。</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -51,3 +62,4 @@
|
||||
<div class="card-footer">{{ $items->links() }}</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user