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