From aff57eb57466b2c81851c6590ee41c06099c096f Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Thu, 23 Oct 2025 01:23:41 +0500 Subject: [PATCH] Add navigation labels and translations for Card and Loan resources --- .../Clusters/Cards/Cards/CardResource.php | 15 +++++++++++++++ .../Clusters/Loans/Loans/LoanResource.php | 4 ++-- lang/tk.json | 4 +++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app/Filament/Clusters/Cards/Cards/CardResource.php b/app/Filament/Clusters/Cards/Cards/CardResource.php index 2dba1d0..947b8e1 100644 --- a/app/Filament/Clusters/Cards/Cards/CardResource.php +++ b/app/Filament/Clusters/Cards/Cards/CardResource.php @@ -28,6 +28,21 @@ class CardResource extends Resource protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCreditCard; + public static function getNavigationLabel(): string + { + return __('My cards'); + } + + public static function getModelLabel(): string + { + return __('Card'); + } + + public static function getPluralModelLabel(): string + { + return __('Cards'); + } + public static function form(Schema $schema): Schema { return $schema diff --git a/app/Filament/Clusters/Loans/Loans/LoanResource.php b/app/Filament/Clusters/Loans/Loans/LoanResource.php index 8c68485..3d0c908 100644 --- a/app/Filament/Clusters/Loans/Loans/LoanResource.php +++ b/app/Filament/Clusters/Loans/Loans/LoanResource.php @@ -34,12 +34,12 @@ class LoanResource extends Resource public static function getModelLabel(): string { - return __('Karz'); + return __('Loan'); } public static function getPluralModelLabel(): string { - return __('Karzlar'); + return __('Loans'); } public static function form(Schema $schema): Schema diff --git a/lang/tk.json b/lang/tk.json index 07adb0b..c8c1606 100644 --- a/lang/tk.json +++ b/lang/tk.json @@ -664,5 +664,7 @@ "Card name": "Kartdaky at", "Card month": "Kart aýy", "Card year": "Kart ýyl", - "Cards": "Kartlar" + "Cards": "Kartlar", + "Loans": "Karzlar", + "Loan": "Karz" }