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
|
|
|
</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">
|
2016-12-30 20:37:27 +08:00
|
|
|
<span class="info-box-text">{{ trans('admin.index.total-users') }}</span>
|
2018-02-22 19:17:40 +08:00
|
|
|
<span class="info-box-number">{{ App\Models\User::count() }}</span>
|
2016-08-28 10:05:21 +08:00
|
|
|
</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-10-17 09:54:55 +08:00
|
|
|
<span class="info-box-icon bg-green"><i class="fa fa-gamepad"></i></span>
|
|
|
|
<div class="info-box-content">
|
2016-12-30 20:37:27 +08:00
|
|
|
<span class="info-box-text">{{ trans('admin.index.total-players') }}</span>
|
2018-02-22 19:17:40 +08:00
|
|
|
<span class="info-box-number">{{ App\Models\Player::count() }}</span>
|
2016-08-28 10:05:21 +08:00
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</a>
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="info-box">
|
2016-10-17 09:54:55 +08:00
|
|
|
<span class="info-box-icon bg-aqua" style="background-color: #605ca8 !important;"><i class="fa fa-files-o"></i></span>
|
2016-08-28 10:05:21 +08:00
|
|
|
<div class="info-box-content">
|
2016-12-30 20:37:27 +08:00
|
|
|
<span class="info-box-text">{{ trans('admin.index.total-textures') }}</span>
|
2018-02-22 19:17:40 +08:00
|
|
|
<span class="info-box-number">{{ App\Models\Texture::count() }}</span>
|
2016-08-28 10:05:21 +08:00
|
|
|
</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">
|
2016-12-30 20:37:27 +08:00
|
|
|
<span class="info-box-text">{{ trans('admin.index.disk-usage') }}</span>
|
2018-02-22 19:17:40 +08:00
|
|
|
<?php $size = DB::table('textures')->sum('size') ?: 0; ?>
|
2016-08-28 10:05:21 +08:00
|
|
|
<span class="info-box-number">{{ $size > 1024 ? round($size / 1024, 1)."MB" : $size."KB" }}</span>
|
|
|
|
</div><!-- /.info-box-content -->
|
|
|
|
</div><!-- /.info-box -->
|
|
|
|
</div>
|
2016-10-16 21:21:37 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
2016-12-30 15:01:34 +08:00
|
|
|
<h3 class="box-title">{{ trans('admin.index.overview') }}</h3>
|
2016-10-16 21:21:37 +08:00
|
|
|
<div class="box-tools pull-right">
|
|
|
|
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
|
|
|
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="chart">
|
2018-02-24 13:32:30 +08:00
|
|
|
{!! $chart->render() !!}
|
2016-10-16 21:21:37 +08:00
|
|
|
</div>
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
</div><!-- /.box -->
|
|
|
|
</div>
|
2016-08-28 10:05:21 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</section><!-- /.content -->
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
2018-02-24 13:32:30 +08:00
|
|
|
<script type="text/javascript" src="{{ assets('js/chart.js') }}"></script>
|
2016-08-28 10:05:21 +08:00
|
|
|
@endsection
|