$notifications->getRouteKey(), 'key' => [ 'public' => $notifications->getPublicKey(), 'route' => $notifications->getRouteKey(), ], 'id' => $notifications->id, 'Name' => $notifications->Name, 'body' => $notifications->body, 'url' => [ 'public' => trans_url('notification/'.$notifications->getPublicKey()), 'user' => guard_url('notification/notifications/'.$notifications->getRouteKey()), ], 'status' => trans('app.'.$notifications->status), 'created_at' => format_date($notifications->created_at), 'updated_at' => format_date($notifications->updated_at), ]; } }