feat(desfile): associate tickets menu with desfile tenant and add migration test

This commit is contained in:
2026-09-25 11:15:52 -03:00
parent b309738222
commit 57d278336d
11 changed files with 421 additions and 11 deletions

View File

@@ -48,8 +48,17 @@ class AdminAppTicketRowService
{
$details ??= $this->details($ticket);
$presentation = $this->presentation($ticket, $details);
$attributeValues = collect($details['variant_properties'] ?? [])
->mapWithKeys(fn (array $property): array => [
$property['code'] => collect($property['values'] ?? [])
->pluck('label')
->filter()
->implode(', ') ?: '-',
])
->all();
return [
...$attributeValues,
'order_number' => $details['order_number'],
'category' => $presentation['category'],
'product' => $presentation['product'],