style(admin): orders index export/filter controls use btn components

This commit is contained in:
萝卜
2026-03-14 09:43:49 +00:00
parent a37d9fd516
commit a556da7f94

View File

@@ -11,7 +11,7 @@
$exportQuery = http_build_query(array_filter($filters, fn ($value) => $value !== null && $value !== '')); $exportQuery = http_build_query(array_filter($filters, fn ($value) => $value !== null && $value !== ''));
@endphp @endphp
<div class="mb-12"> <div class="mb-12">
<a href="{{ '/admin/orders/export' . ($exportQuery ? ('?' . $exportQuery) : '') }}">导出当前筛选结果 CSV</a> <a class="btn btn-secondary btn-sm" href="{{ '/admin/orders/export' . ($exportQuery ? ('?' . $exportQuery) : '') }}">导出当前筛选结果 CSV</a>
</div> </div>
<h3>筛选条件</h3> <h3>筛选条件</h3>
@if(!empty($filters['validation_errors'])) @if(!empty($filters['validation_errors']))
@@ -38,7 +38,7 @@
<input type="number" step="0.01" min="0" name="min_pay_amount" placeholder="最低实付金额" value="{{ $filters['min_pay_amount'] }}"> <input type="number" step="0.01" min="0" name="min_pay_amount" placeholder="最低实付金额" value="{{ $filters['min_pay_amount'] }}">
<input type="number" step="0.01" min="0" name="max_pay_amount" placeholder="最高实付金额" value="{{ $filters['max_pay_amount'] }}"> <input type="number" step="0.01" min="0" name="max_pay_amount" placeholder="最高实付金额" value="{{ $filters['max_pay_amount'] }}">
<select name="sort">@foreach($filterOptions['sortOptions'] as $sortValue => $sortLabel)<option value="{{ $sortValue }}" @selected(($filters['sort'] ?? 'latest') === $sortValue)>{{ $sortLabel }}</option>@endforeach</select> <select name="sort">@foreach($filterOptions['sortOptions'] as $sortValue => $sortLabel)<option value="{{ $sortValue }}" @selected(($filters['sort'] ?? 'latest') === $sortValue)>{{ $sortLabel }}</option>@endforeach</select>
<div class="actions"><button type="submit">筛选</button><a href="/admin/orders">重置</a></div> <div class="actions"><button class="btn btn-sm" type="submit">筛选</button><a class="btn btn-secondary btn-sm" href="/admin/orders">重置</a></div>
</div> </div>
</form> </form>
</div> </div>