$location->getRouteKey(), 'key' => [ 'public' => $location->getPublicKey(), 'route' => $location->getRouteKey(), ], 'name' => $location->name, 'address' => $location->address, 'city' => $location->city, 'postcode' => $location->postcode, 'latitude' => $location->latitude, 'longitude' => $location->longitude, 'url' => [ 'public' => trans_url('location/'.$location->getPublicKey()), 'user' => guard_url('location/location/'.$location->getRouteKey()), ], 'status' => trans('app.'.$location->status), 'created_at' => format_date($location->created_at), 'updated_at' => format_date($location->updated_at), ]; } }