46 lines
1.3 KiB
PHP
46 lines
1.3 KiB
PHP
@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
|