fix: Überfällig-Badge bei offenen Aufgaben im Dashboard mit Text

Statt nur Ausrufezeichen-Icon nun ein rotes Badge mit Label
"überfällig / overdue" + Datum — bestehender Übersetzungsschlüssel
dashboard.overdue (de/en) wird verwendet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
boban 2026-04-20 18:40:01 +02:00
parent 8c69d3b4e6
commit 2c81e2533d
1 changed files with 3 additions and 3 deletions

View File

@ -263,10 +263,10 @@
@endphp
<div class="flex items-center gap-1.5 shrink-0">
@if($isOverdue)
<span class="text-xs text-red-500 font-medium">
{{ $task->due_at->format('d.m.') }}
<span class="inline-flex items-center gap-1 text-xs text-red-500 font-medium bg-red-50 px-1.5 py-0.5 rounded-md">
<x-heroicon-o-exclamation-triangle class="w-3.5 h-3.5 shrink-0"/>
{{ t('dashboard.overdue') }} · {{ $task->due_at->format('d.m.') }}
</span>
<x-heroicon-o-exclamation-triangle class="w-3.5 h-3.5 text-red-400"/>
@elseif($task->due_at)
<span class="text-[11px] text-gray-400 whitespace-nowrap">
{{ $task->due_at->format('d.m.') }}