$hospital->getRouteKey(), 'key' => [ 'public' => $hospital->getPublicKey(), 'route' => $hospital->getRouteKey(), ], 'id' => $hospital->id, 'name' => $hospital->name, 'email' => $hospital->email, 'password' => $hospital->password, 'api_token' => $hospital->api_token, 'remember_token' => $hospital->remember_token, 'mobile' => $hospital->mobile, 'phone' => $hospital->phone, 'address' => $hospital->address, 'street' => $hospital->street, 'city' => $hospital->city, 'district' => $hospital->district, 'state' => $hospital->state, 'country' => $hospital->country, 'photo' => $hospital->photo, 'web' => $hospital->web, 'status' => $hospital->status, 'user_id' => $hospital->user_id, 'user_type' => $hospital->user_type, 'upload_folder' => $hospital->upload_folder, 'deleted_at' => $hospital->deleted_at, 'created_at' => $hospital->created_at, 'updated_at' => $hospital->updated_at, 'url' => [ 'public' => trans_url('hospital/'.$hospital->getPublicKey()), 'user' => guard_url('hospital/hospital/'.$hospital->getRouteKey()), ], 'status' => trans('app.'.$hospital->status), 'created_at' => format_date($hospital->created_at), 'updated_at' => format_date($hospital->updated_at), ]; } }