Translations

This commit is contained in:
Anna-Sara Sélea 2025-03-24 18:43:30 +01:00
parent 314854297c
commit dc0df6d653
4 changed files with 10 additions and 7 deletions

View file

@ -119,7 +119,7 @@ class Reserve extends BasePage implements HasTable
Action::make('reserve')
->label('Reservera')
->button()
->color('success')
->color('primary')
->form([
TextInput::make('username')
->label('Namn')

View file

@ -254,7 +254,7 @@ class ItemResource extends Resource
->label('Reserve')
->translateLabel()
->button()
->color('success')
->color('primary')
->form([
TextInput::make('username')
->label('Name')

View file

@ -16,9 +16,10 @@ class AdminWidget extends BaseWidget
protected function getStats(): array
{
return [
Card::make('Total number of users', User::count() ),
Card::make('Total number of items', Item::count() ),
Card::make('Reserved items', Reserveditem::count() ),
//Card::make(__('Total number of users'), User::count() ),
Card::make(__('Total number of games'), Item::where('type', 'game')->count() ),
Card::make(__('Total number of items'), Item::where('type', 'item')->count() ),
Card::make(__('Reserved games and items'), Reserveditem::count() ),
];
}

View file

@ -32,6 +32,8 @@
"Users": "Användare",
"Is admin": "Admin",
"Password": "Lösenord",
"Email verified at": "Email verifierad den"
"Email verified at": "Email verifierad den",
"Total number of games": "Totalt antal spel i lager",
"Total number of items": "Totalt antal saker i lager",
"Reserved games and items": "Reserverade spel och saker"
}