feat(ticket): add action capability helpers and expose them in admin resource
This commit is contained in:
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user