|
|
@ -39,14 +39,13 @@ class ParkingSpaceAttributes extends Model |
|
|
$data = self::query()->where('is_default', 0)->get()->select( |
|
|
$data = self::query()->where('is_default', 0)->get()->select( |
|
|
['id', 'attributes'] |
|
|
['id', 'attributes'] |
|
|
)->toArray(); |
|
|
)->toArray(); |
|
|
foreach ($data as &$item) { |
|
|
foreach ($data as $key => $item) { |
|
|
$item['attributes'] |
|
|
$data[$key]['attributes'] |
|
|
= AdminTranslationService::getTranslationTypeName( |
|
|
= AdminTranslationService::getTranslationTypeName( |
|
|
$item['id'], |
|
|
$item['id'], |
|
|
2, |
|
|
2, |
|
|
$item['attributes'] |
|
|
$item['attributes'] |
|
|
); |
|
|
); |
|
|
return $item; |
|
|
|
|
|
} |
|
|
} |
|
|
return $data; |
|
|
return $data; |
|
|
} |
|
|
} |
|
|
|