feat(resource): expose each offering's service section
The resource booking modal groups services under their section, the way the doctor's service booking does. The offering list had no section, so the list could only be flat. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,12 @@ final class ResourceServiceAssignmentService
|
||||
'effective_price_rials' => $spec->priceRials,
|
||||
'duration_source' => $spec->durationSource,
|
||||
'price_source' => $spec->priceSource,
|
||||
// مودالِ رزرو منبع سرویسها را زیر بخششان گروه میکند؛ بدون این، فهرست
|
||||
// یک لیست تختِ بیدسته میشد.
|
||||
'service_section' => [
|
||||
'uuid' => $item->getSection()->getUuid(),
|
||||
'name' => $item->getSection()->getName(),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user