Add navigation labels and translations for Card and Loan resources

This commit is contained in:
nurmuhammet committed 2025-10-23 01:23:41 +05:00
1 parent 47c81932fd
commit aff57eb574
3 files changed
+20 -3

No files matched your search

@@ -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
@@ -34,12 +34,12 @@ public static function getNavigationLabel(): string
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