$groupchat->getRouteKey(), 'key' => [ 'public' => $groupchat->getPublicKey(), 'route' => $groupchat->getRouteKey(), ], 'groupchat_id' => $groupchat->groupchat_id, 'user_id' => $groupchat->user_id, 'user_type' => $groupchat->user_type, 'comments' => $groupchat->comments, 'url' => [ 'public' => trans_url('groupchat/'.$groupchat->getPublicKey()), 'user' => guard_url('groupchat/groupchat/'.$groupchat->getRouteKey()), ], 'status' => trans('app.'.$groupchat->status), 'created_at' => format_date($groupchat->created_at), 'updated_at' => format_date($groupchat->updated_at), ]; } }