init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
@extends('admin.content')
|
||||
|
||||
@section('title', '原始日志')
|
||||
|
||||
@section('content')
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">原始日志(public/log/c2)</div>
|
||||
<div class="layui-card-body">
|
||||
<p class="layui-word-aux" style="margin-bottom:12px;">按日文件落盘,不再写入数据库。</p>
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>文件</th>
|
||||
<th>大小</th>
|
||||
<th>修改时间</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($files 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'], 'path' => $path, 'device' => $device]) }}">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="4">暂无日志文件</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user