public dash and view counting

This commit is contained in:
2018-07-29 11:52:29 +02:00
parent f77b1789fa
commit a79b5ae7d8
37 changed files with 415 additions and 663 deletions
@@ -4,9 +4,9 @@
@else
@foreach($tables as $table)
@php
$forks = $table->forks()->count();
$faves = $table->favouritingUsers()->count();
$revs = $table->revisions()->count();
$forks = $table->forks_count;
$faves = $table->favourites_count;
$revs = $table->revisions_count;
$rows = $table->revision->row_count;
@endphp
<a class="list-group-item list-group-item-action"
@@ -16,6 +16,9 @@
@icon(fa-table fa-pr){{ $table->title }}
</div>{{--
--}}<div class="d-inline-block col-5 small text-right">{{--
--}}<span title="Visits" class="d-inline-block" style="min-width: 60px;">
{{ $table->visits }}@icon(fa-eye fa-pl, ~Visits~~)
</span>{{--
--}}<span title="Forks" class="d-inline-block {{$forks==0?'hidden':''}}" style="min-width: 60px;">
{{ $forks }}@icon(fa-code-fork fa-pl, ~Forks~~)
</span>{{--
+1
View File
@@ -63,6 +63,7 @@
<div class="col-md-8 mt-2 mt-md-0">
<div class="card">
<div class="card-header card-header-extra">
@icon(fa-table fa-pr fa-large)
<h2>
@if(authed() && user()->is($user))
Your Tables