This commit is contained in:
2024-11-06 18:26:19 +05:00
parent af55c79463
commit bcf0c625e8
2 changed files with 23 additions and 1 deletions

View File

@@ -43,6 +43,26 @@ class OnlinePaymentHistoryResource extends Resource
return __('Online payment history');
}
/**
* Fields for index
*
* @param NovaRequest $request
*/
public function fieldsForIndex(NovaRequest $request)
{
return [
Text::make('PNR', 'orderNumber'),
Text::make('ID', 'orderId'),
Text::make('Möçberi', 'amount'),
Text::make('Desc', 'description'),
Text::make('Status', 'paymentStatus'),
Text::make('username', 'username'),
DateTime::make(__('Created at'), 'created_at')
->displayUsing(fn ($date) => $date?->format('H:i, d.m.Y')),
];
}
/**
* Get the fields displayed by the resource.
*

View File

@@ -322,5 +322,7 @@
"Send payment": "Tölegi geçir",
"Currencies": "Walýutalar",
"Passport number": "Pasport nomeri",
"Fetch loan history": "Karz taryhyny görmek"
"Fetch loan history": "Karz taryhyny görmek",
"Online payment": "Onlaýn töleg",
"Online payment history": "Onlaýn töleg taryhy"
}