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