@php if (!isset($showAuthors)) $showAuthors = false; @endphp @php /** @var \App\Models\Table[] $tables */ @endphp
@if(count($tables) == 0) No tables yet. @else @foreach($tables as $table) @php $forks = $table->forks_count; $faves = $table->favourites_count; $revs = $table->revisions_count; $rows = $table->revision->row_count; @endphp {{-- this must be span so that Lynx includes the table name in the anchor --}} @icon(fa-table fa-pr){!! $showAuthors ? (e($table->owner->handle) . '/') : '' !!}{{ $table->title }}
{{ $table->visits }}@icon(fa-eye fa-pl, ~Visits~~) @if(FEATURE_FORKS) {{ $forks }}@icon(fa-code-fork fa-pl, ~Forks~~) @endif @if(FEATURE_FAVES) {{ $faves }}@icon(fa-star fa-pl, ~Favourites~~) @endif {{ $revs }}@icon(fa-history fa-pl, ~Revisions~~) {{ $rows }}@icon(fa-th-list fa-pl, ~Rows)
@sr(Description:~){{ ellipsis($table->description, 215) }}
{{-- --}}
Last change {{ $table->updated_at->diffForHumans() }}
@endforeach @endif