$notification->getRouteKey(), 'key' => [ 'public' => $notification->getPublicKey(), 'route' => $notification->getRouteKey(), ], 'name' => $notification->name, 'lead_id' => $notification->lead_id, 'agent_id' => $notification->agent_id, 'deleted_at' => $notification->deleted_at, 'url' => [ 'public' => trans_url('notification/'.$notification->getPublicKey()), 'user' => guard_url('notification/notification/'.$notification->getRouteKey()), ], 'status' => trans('app.'.$notification->status), 'created_at' => format_date($notification->created_at), 'updated_at' => format_date($notification->updated_at), ]; } }