@extends('back.layout.pages-layout') @section('pageTitle', isset($pageTitle) ? $pageTitle : 'Page Title here') @section('content')
{{-- Überschrift, falls du sie brauchst --}}

{{ $pageTitle ?? 'Dashboard' }}

{{-- KPI-Karten: Tags / Posts / Subscriber --}}
{{-- Tags (deine Zähl-Logik) --}}
Tags Stückanzahl

{{ $tagsCount ?? 0 }}

Gesamtzahl (laut Feld tags)
{{-- Posts --}}
Posts Stückanzahl

{{ $postsCount ?? 0 }}

Gesamtzahl der Posts
{{-- Subscriber --}}
Subscriber Stückanzahl

{{ $subscribersCount ?? 0 }}

Gesamtzahl der Abonnenten
{{-- SEO / Content-Checks: KPIs --}}
{{-- Posts ohne Meta-Beschreibung --}}
Posts ohne Meta-Beschreibung {{ ($postsWithoutMetaDescriptionCount ?? 0) > 0 ? 'Optimieren' : 'OK' }}

{{ $postsWithoutMetaDescriptionCount ?? 0 }}

Anzahl Beiträge ohne Meta-Description
{{-- Posts ohne Meta-Keywords --}}
Posts ohne Meta-Keywords {{ ($postsWithoutMetaKeywordsCount ?? 0) > 0 ? 'Optimieren' : 'OK' }}

{{ $postsWithoutMetaKeywordsCount ?? 0 }}

Anzahl Beiträge ohne Meta-Keywords
{{-- Posts ohne Tags --}}
Posts ohne Tags {{ ($postsWithoutTagsCount ?? 0) > 0 ? 'Optimieren' : 'OK' }}

{{ $postsWithoutTagsCount ?? 0 }}

Beiträge ohne Eintrag im Feld tags
{{-- Letzte 5 Beiträge --}}
Letzte 5 Beiträge
@if (Route::has('posts.index')) Alle anzeigen @endif
@forelse($latestPosts as $post) @php $needsOptimization = empty($post->meta_keywords) || empty($post->tags) || empty($post->meta_description); // ggf. Feldname anpassen (z.B. meta_title) @endphp @empty @endforelse
Titel Status SEO Erstellt am Aktionen
@if (Route::has('posts.edit')) {{ $post->title }} @else {{ $post->title }} @endif @if ($post->visibility == 1) Veröffentlicht @else Entwurf @endif @if ($needsOptimization) Optimieren @else OK @endif {{ $post->created_at->format('d.m.Y H:i') }} {{-- Anschauen --}} @if (Route::has('read_post')) Anschauen @endif {{-- Bearbeiten --}} @if (Route::has('admin.edit_post')) Bearbeiten @endif
Keine Beiträge vorhanden.
{{-- Detail-Listen: Posts ohne Meta / Tags --}}
Beiträge mit Optimierungsbedarf
{{-- Ohne Meta-Beschreibung --}}
Ohne Meta-Beschreibung
    @forelse($postsWithoutMetaDescription as $post)
  • @if (Route::has('posts.edit')) {{ $post->title }} @else {{ $post->title }} @endif
    {{ $post->created_at->format('d.m.Y') }}
  • @empty
  • Alles erledigt.
  • @endforelse
{{-- Ohne Meta-Keywords --}}
Ohne Meta-Keywords
    @forelse($postsWithoutMetaKeywords as $post)
  • @if (Route::has('posts.edit')) {{ $post->title }} @else {{ $post->title }} @endif
    {{ $post->created_at->format('d.m.Y') }}
  • @empty
  • Alles erledigt.
  • @endforelse
{{-- Ohne Tags --}}
Ohne Tags
    @forelse($postsWithoutTags as $post)
  • @if (Route::has('posts.edit')) {{ $post->title }} @else {{ $post->title }} @endif
    {{ $post->created_at->format('d.m.Y') }}
  • @empty
  • Alles erledigt.
  • @endforelse
@endsection