fix query hospital dashboard and search
This commit is contained in:
@@ -18,8 +18,8 @@ class HospitalResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'address' => $this->address ?? null,
|
||||
'distance' => isset($this->distance_km) ? round($this->distance_km) . ' km' : null,
|
||||
'city_name' => $this->currentAddress->city->name ?? null,
|
||||
'distance' => $this->distance ? ($this->distance < 1 ? round($this->distance * 1000, 2) . " m" : round($this->distance, 2) . " km") : null,
|
||||
'city_name' => $this->city_name ?? null,
|
||||
'phone' => $this->meta->phone,
|
||||
'photos' => [
|
||||
'title' => $this->name,
|
||||
|
||||
Reference in New Issue
Block a user