@if ($notificationType === 'task') @php $title = strtolower($notification['title'] ?? ''); $messagesMap = [ 'task completed' => 'Task Completed', 'task closed' => 'Task Closed', "task marked as can't do" => "Task Marked as Can't Do", 'task overdue' => 'Task Overdue', ]; @endphp @if (in_array($notification['title'], $comments)) {{ $notification['message'] }} @elseif (isset($messagesMap[$title])) {{ $messagesMap[$title] }}: {{ $notification['message'] ?? '' }} @else {{ $notification['message'] }} @endif @elseif ($notificationType === 'form_reminder') {{ $notification['title'] }} @else {{ $notification['message'] }}: {{ $notification['title'] }} @endif
{{ \Carbon\Carbon::parse($notification['notified_at'])->diffForHumans() }}
No new notifications