@extends('layouts.modcp') @section('page-title', "Dashboard - " . config('app.name') ) @section('modcp-content')
Dashboard
{{ $stats['pending'] }} In queue
@can('moderate','\App\Models\Entry')
{{ $stats['locked'] }} Locked
@endcan @can('is-admin')
{{ $stats['draft'] }} Draft
{{ $stats['hidden'] }} Hidden
{{ $stats['deleted'] }} Deleted
@endcan
{{ $stats['total'] }} Total entries
@if($recentDeleted->isNotEmpty()) @can('is-admin')
Recently deleted
@foreach($recentDeleted as $entry)
{{ $entry->complete_title ?? $entry->title }} {{ $entry->type }} Deleted {{ $entry->deleted_at->diffForHumans() }}
@csrf @method('PATCH')
@csrf @method('DELETE')
@endforeach See all deleted entries → @endcan
@endif @endsection