$flats->getRouteKey(), 'key' => [ 'public' => $flats->getPublicKey(), 'route' => $flats->getRouteKey(), ], 'flat_type' => $flats->flat_type, 'name' => $flats->name, 'no_of_floors' => $flats->no_of_floors, 'no_of_units' => $flats->no_of_units, 'car_parking' => $flats->car_parking, 'price' => $flats->price, 'owner_id' => $flats->owner_id, 'area' => $flats->area, 'city' => $flats->city, 'state' => $flats->state, 'country' => $flats->country, 'pin_code' => $flats->pin_code, 'description' => $flats->description, 'url' => [ 'public' => trans_url('flat/'.$flats->getPublicKey()), 'user' => guard_url('flat/flats/'.$flats->getRouteKey()), ], 'status' => trans('app.'.$flats->status), 'created_at' => format_date($flats->created_at), 'updated_at' => format_date($flats->updated_at), ]; } }