stan errors

This commit is contained in:
2025-03-13 17:35:49 +05:00
parent 744cbf29f2
commit 8ce5db8df0
9 changed files with 59 additions and 10 deletions

View File

@@ -17,6 +17,9 @@ class SberPaymentOrderFieldsForIndex
{
/**
* Loan Order fields for "create"
*
* @param NovaSberPaymentOrder $resource
* @return array<int, \Laravel\Nova\Fields\Field>
*/
public static function make(NovaSberPaymentOrder $resource): array
{
@@ -56,7 +59,10 @@ class SberPaymentOrderFieldsForIndex
->sortable(),
Text::make(sprintf('%s (%s)', __('Paid'), __('This month')), function () use ($resource) {
return static::paidField($resource, $resource->filter_month);
return static::paidField(
$resource,
$resource->offsetExists('filter_month') ? $resource->offsetGet('filter_month') : null
);
}),
];
}