@php $title = 'RTW 3 – Erinnerungen'; $pageTitle = 'Erinnerungen'; $pageSubtitle = 'RTW 3 • MA-RTW 903 • Aufgaben & Fristen (unabhängig von Dokumenten)'; $items = [ [ 'title' => 'TÜV Termin vereinbaren', 'date' => '20.05.2024', 'priority' => 'high', // low | medium | high 'status' => 'open', // open | done 'note' => 'Werkstatt Mustermann kontaktieren', ], [ 'title' => 'Wartung Absaugpumpe prüfen', 'date' => '02.06.2024', 'priority' => 'medium', 'status' => 'open', 'note' => 'Gerät laut Checkliste prüfen', ], [ 'title' => 'Innenraumdesinfektion dokumentieren', 'date' => '01.04.2024', 'priority' => 'low', 'status' => 'done', 'note' => 'Durchgeführt nach Einsatz 4711', ], ]; $prio = [ 'low' => ['cls' => 'bg-gray-100 text-gray-700 ring-gray-200', 'label' => 'Niedrig'], 'medium' => ['cls' => 'bg-yellow-50 text-yellow-800 ring-yellow-200', 'label' => 'Mittel'], 'high' => ['cls' => 'bg-red-50 text-red-700 ring-red-200', 'label' => 'Hoch'], ]; $status = [ 'open' => ['cls' => 'bg-brand/10 text-brand ring-brand/15', 'label' => 'Offen'], 'done' => ['cls' => 'bg-gray-100 text-gray-700 ring-gray-200', 'label' => 'Erledigt'], ]; @endphp

Liste

RTW 3
@foreach ($items as $it) @endforeach
Datum Titel Priorität Status
{{ $it['date'] }}
{{ $it['title'] }}
{{ $it['note'] }}
{{ $prio[$it['priority']]['label'] }} {{ $status[$it['status']]['label'] }}
UX-only: Filter/Tab steuern später die echte Datenabfrage.