mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Rework admin panel
This commit is contained in:
parent
9e14a3cffb
commit
b6cf6d21a1
@ -20,49 +20,58 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="info-box">
|
<div class="small-box bg-aqua">
|
||||||
<a href="{{ url('admin/users') }}">
|
<div class="inner">
|
||||||
<span class="info-box-icon bg-aqua"><i class="fas fa-users"></i></span>
|
<h3>{{ App\Models\User::count() }}</h3>
|
||||||
<div class="info-box-content">
|
<p>@lang('admin.index.total-users')</p>
|
||||||
<span class="info-box-text">@lang('admin.index.total-users')</span>
|
</div>
|
||||||
<span class="info-box-number">{{ App\Models\User::count() }}</span>
|
<div class="icon"><i class="fas fa-users"></i></div>
|
||||||
</div><!-- /.info-box-content -->
|
<a href="{{ url('admin/users') }}" class="small-box-footer">
|
||||||
|
@lang('general.user-manage') <i class="fa fa-arrow-circle-right"></i>
|
||||||
</a>
|
</a>
|
||||||
</div><!-- /.info-box -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="info-box">
|
<div class="small-box bg-green">
|
||||||
<a href="{{ url('admin/players') }}">
|
<div class="inner">
|
||||||
<span class="info-box-icon bg-green"><i class="fas fa-gamepad"></i></span>
|
<h3>{{ App\Models\Player::count() }}</h3>
|
||||||
<div class="info-box-content">
|
<p>@lang('admin.index.total-players')</p>
|
||||||
<span class="info-box-text">@lang('admin.index.total-players')</span>
|
</div>
|
||||||
<span class="info-box-number">{{ App\Models\Player::count() }}</span>
|
<div class="icon"><i class="fas fa-gamepad"></i></div>
|
||||||
</div><!-- /.info-box-content -->
|
<a href="{{ url('admin/players') }}" class="small-box-footer">
|
||||||
|
@lang('general.player-manage') <i class="fa fa-arrow-circle-right"></i>
|
||||||
</a>
|
</a>
|
||||||
</div><!-- /.info-box -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info-box">
|
<div class="row">
|
||||||
<span class="info-box-icon bg-aqua" style="background-color: #605ca8 !important;"><i class="far fa-file"></i></span>
|
<div class="col-md-6">
|
||||||
<div class="info-box-content">
|
<div class="small-box bg-purple">
|
||||||
<span class="info-box-text">@lang('admin.index.total-textures')</span>
|
<div class="inner">
|
||||||
<span class="info-box-number">{{ App\Models\Texture::count() }}</span>
|
<h3>{{ App\Models\Texture::count() }}</h3>
|
||||||
</div><!-- /.info-box-content -->
|
<p>@lang('admin.index.total-textures')</p>
|
||||||
</div><!-- /.info-box -->
|
</div>
|
||||||
|
<div class="icon"><i class="fas fa-file"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="info-box">
|
<div class="col-md-6">
|
||||||
<span class="info-box-icon bg-yellow"><i class="far fa-hdd"></i></span>
|
<div class="small-box bg-yellow">
|
||||||
<div class="info-box-content">
|
<div class="inner">
|
||||||
<span class="info-box-text">@lang('admin.index.disk-usage')</span>
|
|
||||||
@php
|
@php
|
||||||
$size = DB::table('textures')->sum('size') ?: 0;
|
$size = DB::table('textures')->sum('size') ?: 0;
|
||||||
@endphp
|
@endphp
|
||||||
<span class="info-box-number">{{ $size > 1024 ? round($size / 1024, 1)."MB" : $size."KB" }}</span>
|
<h3>{{ $size > 1024 ? round($size / 1024, 1).'MB' : $size.'KB' }}</h3>
|
||||||
</div><!-- /.info-box-content -->
|
<p>@lang('admin.index.disk-usage')</p>
|
||||||
</div><!-- /.info-box -->
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="icon"><i class="fas fa-hdd"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-primary">
|
<div class="box box-primary">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
|
Loading…
Reference in New Issue
Block a user