隧道

@foreach ($hosts as $host) @php($cache = Cache::get('frpTunnel_data_' . $host->client_token, ['status' => 'offline'])) @if ($host->protocol == 'http' || $host->protocol == 'https') @else @endif @endforeach
ID 名称 客户 状态 协议 本地地址 远程端口/域名 连接数 下载流量 上载流量 服务器 隧道状态 创建时间 更新时间 操作
{{ $host->id }} {{ $host->name }} {{ $host->user->name }} {{ $host->status }}{{ strtoupper($host->protocol) }} {{ $host->local_address }}{{ $host->custom_domain }}{{ $host->server->server_address . ':' . $host->remote_port }}{{ $cache['cur_conns'] ?? 0 }} {{ unitConversion($cache['today_traffic_in'] ?? 0) }} {{ unitConversion($cache['today_traffic_out'] ?? 0) }} {{ $host->server->name }} @if($host->locked_reason) 被锁定,因为 {{ $host->locked_reason }}
@endif @if ($cache['status'] === 'online') 在线 @else 离线 @endif
{{ $host->created_at }} {{ $host->updated_at }} 编辑  
@csrf @method('DELETE')
{{ $hosts->links() }}