This commit is contained in:
2024-11-23 00:04:52 +05:00
parent 0eacfb71a9
commit f4a71472be
2 changed files with 17 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ trait NovaVisaMasterPaymentOrderItemAuth
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return bool * @return bool
*/ */
public function authorizedToView(Request $request) public function authorizedToView(Request $request): bool
{ {
return false; return false;
} }

View File

@@ -85,6 +85,22 @@ class NovaVisaMasterPaymentOrderItem extends Resource
return __('Payment'); 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. * Get the fields displayed by the resource.
* *
@@ -114,12 +130,4 @@ class NovaVisaMasterPaymentOrderItem extends Resource
Boolean::make('paid'), Boolean::make('paid'),
]; ];
} }
/**
* Actions
*/
public function actions(NovaRequest $request): array
{
return [];
}
} }