@php
$notificationUser = \App\Models\Invoice::find($notification->data['id']);
@endphp
@if ($notificationUser)
    <x-cards.notification :notification="$notification" :link="route('invoices.show', $notification->data['id'])"
        :image="$notificationUser->client->image_url" :title="__('email.invoices.newPaymentReceived')"
        :text="$notification->data['invoice_number']" :time="$notification->created_at" />
@endif
