@php
    use App\Models\TaskHistory;$notificationUser = TaskHistory::where('task_id', $notification->data['id'])
        ->orderByDesc('id')
        ->first();
@endphp
<x-cards.notification :notification="$notification" :link="route('tasks.show', $notification->data['id'])"
                      :image="($notificationUser && $notificationUser->user) ? $notificationUser->user->image_url : '' "
                      :title="__('email.taskApproval.subject')" :text="$notification->data['heading']"
                      :time="$notification->created_at"/>
