wip
This commit is contained in:
@@ -13,7 +13,7 @@ trait NovaVisaMasterPaymentOrderItemAuth
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return bool
|
||||
*/
|
||||
public function authorizedToView(Request $request)
|
||||
public function authorizedToView(Request $request): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,22 @@ class NovaVisaMasterPaymentOrderItem extends Resource
|
||||
return __('Payment');
|
||||
}
|
||||
|
||||
/**
|
||||
* The click action to use when clicking on the resource in the table.
|
||||
*
|
||||
* Can be one of: 'detail' (default), 'edit', 'select', 'preview', or 'ignore'.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $clickAction = 'preview';
|
||||
|
||||
public function fieldsForPreview(): array
|
||||
{
|
||||
return [
|
||||
ID::make(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*
|
||||
@@ -114,12 +130,4 @@ class NovaVisaMasterPaymentOrderItem extends Resource
|
||||
Boolean::make('paid'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Actions
|
||||
*/
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user