pixelfed/resources/views/admin/home.blade.php

108 lines
3.4 KiB
PHP
Raw Normal View History

2019-02-05 20:52:33 +00:00
@extends('admin.partial.template-full')
2018-05-30 02:51:57 +00:00
@section('section')
<div class="title">
<h3 class="font-weight-bold">Dashboard</h3>
</div>
<hr>
<div class="row">
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
2019-06-19 01:14:46 +00:00
<p class="small text-uppercase font-weight-bold text-muted">New Messages</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['contact']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Failed Jobs (24h)</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['failedjobs']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Reports</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0" title="{{$data['reports']}}" data-toggle="tooltip">{{$data['reports']}}</p>
2018-09-23 22:40:52 +00:00
</div>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Statuses</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0" title="{{$data['statuses']}}" data-toggle="tooltip">{{$data['statuses']}}</p>
2018-09-23 22:40:52 +00:00
</div>
2018-05-30 02:51:57 +00:00
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Profiles</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['profiles']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Users</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['users']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Remote Instances</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['instances']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Photos Uploaded</p>
2020-12-18 07:52:49 +00:00
<p class="h2 mb-0">{{$data['media']}}</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
<div class="col-md-4">
2019-07-22 04:11:33 +00:00
<div class="card shadow-none border" style="min-height:125px">
2019-02-05 20:52:33 +00:00
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Storage Used</p>
2020-12-18 07:52:49 +00:00
<p class="human-size mb-0" data-bytes="{{$data['storage']}}">{{$data['storage']}} bytes</p>
2018-05-30 02:51:57 +00:00
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script type="text/javascript">
$(document).ready(function() {
$('.human-size').each(function(d,a) {
let el = $(a);
let size = el.data('bytes');
el.addClass('h2');
el.text(filesize(size, {round: 0}));
});
});
</script>
@endpush