Add navigation labels and translations for Card and Loan resources

This commit is contained in:
2025-10-23 01:23:41 +05:00
parent 47c81932fd
commit aff57eb574
3 changed files with 20 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"
}