@php use App\Models\TaskHistory;$notificationUser = TaskHistory::where('task_id', $notification->data['id']) ->orderByDesc('id') ->first(); @endphp @if ($notificationUser) @endif