From 717f90fca2b1230dd7b9154d9b70e549a4003dd1 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Mon, 25 Nov 2024 22:13:57 +0500 Subject: [PATCH] Wip --- .../Actions/MakePaymentNovaVisaMaster.php | 4 ++-- app/Nova/Actions/MakeSberPaymentAction.php | 8 ++++++++ app/Nova/Resources/NovaVisaMasterSetting.php | 20 +++++++------------ lang/tk.json | 5 ++++- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/app/Nova/Actions/MakePaymentNovaVisaMaster.php b/app/Nova/Actions/MakePaymentNovaVisaMaster.php index de670a6..646ee58 100644 --- a/app/Nova/Actions/MakePaymentNovaVisaMaster.php +++ b/app/Nova/Actions/MakePaymentNovaVisaMaster.php @@ -28,11 +28,11 @@ class MakePaymentNovaVisaMaster extends Action use InteractsWithQueue, Queueable; /** - * Action name + * Name. */ public function name(): string { - return __('Send payment'); + return __('Make payment'); } /** diff --git a/app/Nova/Actions/MakeSberPaymentAction.php b/app/Nova/Actions/MakeSberPaymentAction.php index e503763..6ab631a 100644 --- a/app/Nova/Actions/MakeSberPaymentAction.php +++ b/app/Nova/Actions/MakeSberPaymentAction.php @@ -25,6 +25,14 @@ class MakeSberPaymentAction extends Action { use InteractsWithQueue, Queueable; + /** + * Name. + */ + public function name(): string + { + return __('Make payment'); + } + /** * Perform the action on the given models. */ diff --git a/app/Nova/Resources/NovaVisaMasterSetting.php b/app/Nova/Resources/NovaVisaMasterSetting.php index f90faac..7d1ecba 100644 --- a/app/Nova/Resources/NovaVisaMasterSetting.php +++ b/app/Nova/Resources/NovaVisaMasterSetting.php @@ -40,14 +40,6 @@ class NovaVisaMasterSetting extends Resource return __('Visa Master Settings'); } - /** - * Get the displayable singular label of the resource. - */ - public static function singularLabel(): string - { - return __('Visa Master Setting'); - } - /** * Get the fields displayed by the resource. * @@ -59,13 +51,15 @@ class NovaVisaMasterSetting extends Resource return [ ID::make('id')->sortable(), - Text::make('Name') - ->rules('required', 'string', 'max:255'), + Text::make(__('Code'), 'name') + ->rules('required', 'string', 'max:255') + ->readonly(! auth()->user()->isMe()), - Text::make('Display name', 'display_name') - ->rules('required', 'string', 'max:255'), + Text::make(__('Name'), 'display_name') + ->rules('required', 'string', 'max:255') + ->readonly(! auth()->user()->isMe()), - Text::make('Value') + Text::make(__('Yazgy'), 'value') ->rules('required', 'string', 'max:255'), ]; } diff --git a/lang/tk.json b/lang/tk.json index 6ea4567..f099582 100644 --- a/lang/tk.json +++ b/lang/tk.json @@ -132,6 +132,7 @@ "Patronic name": "Atasynyň ady", "Payload Too Large": "Loadük gaty uly", "Payment": "Töleg", + "Payments": "Tölegler", "Payment Required": "Töleg talap edilýär", "Pending": "Garaşylýar", "Permanent Redirect": "Hemişelik gönükdirme", @@ -326,5 +327,7 @@ "Passport number": "Pasport nomeri", "Fetch loan history": "Karz taryhyny görmek", "Online payment": "Onlaýn töleg", - "Online payment history": "Onlaýn töleg taryhy" + "Online payment history": "Onlaýn töleg taryhy", + "Make payment": "Töleg", + "Visa Master Settings": "Visa/Master sazlamalar" }