@extends('admin.master') @section('title', trans('general.dashboard')) @section('content')

{{ trans('general.dashboard') }} Dashboard

上传材质总数 {{ \Database::table('textures')->getRecordNum() }}
占用空间大小 fetchArray("SELECT SUM(`size`) AS total_size FROM `{table}` WHERE 1")['total_size'] ?: 0; ?> {{ $size > 1024 ? round($size / 1024, 1)."MB" : $size."KB" }}
@endsection