feat(ticket): add action capability helpers and expose them in admin resource

This commit is contained in:
2026-09-11 09:25:19 -03:00
parent 5d00dc439e
commit 2ddb046c26
4 changed files with 77 additions and 4 deletions

View File

@@ -20,6 +20,9 @@ class AdminAppTicketResource extends TicketResource
...parent::toArray($request),
...$details,
'allow_refund' => $this->resource->allow_refund(),
'is_active' => $this->resource->is_active(),
'can_cancel' => $this->resource->can_cancel(),
'can_refund' => $this->resource->can_refund(),
'values' => $rowService->values($this->resource, $details),
];
}