File size: 1.83Kb
@extends('layout')
@section('title')
{{ __('index.errors') }}
@stop
@section('breadcrumb')
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
<li class="breadcrumb-item active">{{ __('index.errors') }}</li>
</ol>
</nav>
@stop
@section('content')
@if (empty(setting('errorlog')))
<span class="text-danger">{{ __('admin.errors.hint') }}</span><br>
@endif
<ol class="breadcrumb">
@foreach ($lists as $key => $value)
<li class="breadcrumb-item">
@if ($key === $code)
<b>{{ $value }}</b>
@else
<a href="/admin/errors?code={{ $key }}">{{ $value }}</a>
@endif
</li>
@endforeach
</ol>
@if ($logs->isNotEmpty())
@foreach ($logs as $data)
<div class="b">
<i class="fa fa-file"></i>
<b>{{ $data->request }}</b> ({{ dateFixed($data->created_at) }})
</div>
<div>
Referer: {{ $data->referer ?: __('main.undefined') }}<br>
{{ __('main.user') }}: {!! $data->user->exists ? $data->user->getProfile() : setting('guestsuser') !!}<br>
<span class="data">({{ $data->brow }}, {{ $data->ip }})</span>
</div>
@endforeach
<br>{{ __('main.total') }}: <b>{{ $logs->total() }}</b><br>
{{ $logs->links('app/_paginator') }}
@if (isAdmin('boss'))
<i class="fa fa-trash-alt"></i> <a href="/admin/errors/clear?token={{ $_SESSION['token'] }}">{{ __('main.clear') }}</a><br>
@endif
@else
{!! showError(__('main.empty_records')) !!}
@endif
@stop