forkbb/app/templates/admin/statistics.forkbb.php
2021-12-11 13:15:28 +07:00

41 lines
1.5 KiB
PHP

@extends ('layouts/admin')
<section id="fork-serverst" class="f-admin">
<h2>{!! __('Server statistics head') !!}</h2>
<div class="f-fdiv">
<fieldset>
<dl>
<dt>{!! __('Server load label') !!}</dt>
<dd>{!! __(['Server load data', $p->serverLoad, $p->numOnline]) !!}</dd>
</dl>
@if ($p->user->isAdmin)
<dl>
<dt>{!! __('Environment label') !!}</dt>
<dd>
{!! __(['Environment data OS', \PHP_OS]) !!}<br>
{!! __(['Environment data version', \PHP_VERSION]) !!} - <a href="{{ $p->linkInfo }}">{!! __('Show info') !!}</a><br>
@if ($p->linkAcc)
{!! __('Environment data acc') !!} <a href="{{ $p->linkAcc }}">{{ $p->accelerator }}</a>
@else
{!! __('Environment data acc') !!} {{ $p->accelerator }}
@endif
</dd>
</dl>
<dl>
<dt>{!! __('Database label') !!}</dt>
<dd>
{{ $p->dbVersion }}
<br>{!! __(['Database data tables', $p->tTables]) !!}
<br>{!! __(['Database data rows', num($p->tRecords)]) !!}
<br>{!! __(['Database data size', size($p->tSize)]) !!}
@if ($p->tOther)
<br><br>{!! __('Other')!!}
@foreach ($p->tOther as $key => $value)
<br>{{ $key }} = {{ $value }}
@endforeach
@endif
</dd>
@endif
</dl>
</fieldset>
</div>
</section>