Add navigation labels and translations for Card and Loan resources
This commit is contained in:
@@ -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 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user