diff --git a/app/Nova/Resources/Payment/OnlinePaymentHistoryResource.php b/app/Nova/Resources/Payment/OnlinePaymentHistoryResource.php index f36c194..ac8d55a 100644 --- a/app/Nova/Resources/Payment/OnlinePaymentHistoryResource.php +++ b/app/Nova/Resources/Payment/OnlinePaymentHistoryResource.php @@ -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. * diff --git a/lang/tk.json b/lang/tk.json index a4b098e..0473271 100644 --- a/lang/tk.json +++ b/lang/tk.json @@ -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" }