fix resources hospital
This commit is contained in:
@@ -36,7 +36,7 @@ class SpecialityResource extends JsonResource
|
||||
'specialis' => 'Spesialis ' . (isset($this->speciality->name) ? $this->speciality->name : $this->speciality_name),
|
||||
'experience' => rand(5, 12),
|
||||
'rating' => rand(20, 100),
|
||||
'price' => Helper::currencyIdrFormat($prices) ?? null,
|
||||
'price' => $prices ? Helper::currencyIdrFormat($prices) : null,
|
||||
]),
|
||||
$this->mergeWhen($this->name, [
|
||||
'title' => 'Spesialis ' . $this->name,
|
||||
|
||||
Reference in New Issue
Block a user