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:
hamed
2026-08-03 13:47:39 +03:30
co-authored by Claude Opus 5
parent dc728acaaf
commit 1543eddd9e
3 changed files with 45 additions and 0 deletions
@@ -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(),
],
];
}