2016-08-28 10:05:21 +08:00
|
|
|
@extends('admin.master')
|
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
@section('title', trans('general.dashboard'))
|
2016-08-28 10:05:21 +08:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
|
|
|
<h1>
|
2016-09-15 23:03:58 +08:00
|
|
|
{{ trans('general.dashboard') }}
|
2016-08-28 10:05:21 +08:00
|
|
|
<small>Dashboard</small>
|
|
|
|
</h1>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Main content -->
|
|
|
|
<section class="content">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="info-box">
|
2016-09-10 17:02:47 +08:00
|
|
|
<a href="{{ url('admin/users') }}">
|
2016-08-28 10:05:21 +08:00
|
|
|
<span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span>
|
|
|
|
<div class="info-box-content">
|
|
|
|
<span class="info-box-text">注册用户</span>
|
|
|
|
<span class="info-box-number">{{ App\Models\UserModel::all()->count() }}</span>
|
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</a>
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="info-box">
|
2016-09-10 17:02:47 +08:00
|
|
|
<a href="{{ url('admin/players') }}">
|
2016-08-28 10:05:21 +08:00
|
|
|
<div class="info-box-content" style="margin-left: 0;">
|
|
|
|
<span class="info-box-text">角色总数</span>
|
|
|
|
<span class="info-box-number">{{ App\Models\PlayerModel::all()->count() }}</span>
|
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</a>
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="info-box">
|
|
|
|
<span class="info-box-icon bg-green"><i class="fa fa-files-o"></i></span>
|
|
|
|
<div class="info-box-content">
|
|
|
|
<span class="info-box-text">上传材质总数</span>
|
|
|
|
<span class="info-box-number">{{ \Database::table('textures')->getRecordNum() }}</span>
|
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
|
|
|
|
<div class="info-box">
|
|
|
|
<span class="info-box-icon bg-yellow"><i class="fa fa-hdd-o"></i></span>
|
|
|
|
<div class="info-box-content">
|
|
|
|
<span class="info-box-text">占用空间大小</span>
|
|
|
|
<?php $size = \Database::table('textures')->fetchArray("SELECT SUM(`size`) AS total_size FROM `{table}` WHERE 1")['total_size'] ?: 0; ?>
|
|
|
|
<span class="info-box-number">{{ $size > 1024 ? round($size / 1024, 1)."MB" : $size."KB" }}</span>
|
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section><!-- /.content -->
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
|
|
|
@endsection
|