mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-26 20:57:13 +01:00
Translations
This commit is contained in:
parent
314854297c
commit
dc0df6d653
4 changed files with 10 additions and 7 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ class ItemResource extends Resource
|
|||
->label('Reserve')
|
||||
->translateLabel()
|
||||
->button()
|
||||
->color('success')
|
||||
->color('primary')
|
||||
->form([
|
||||
TextInput::make('username')
|
||||
->label('Name')
|
||||
|
|
|
|||
|
|
@ -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() ),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
6
lang/vendor/filament-panels/sv.json
vendored
6
lang/vendor/filament-panels/sv.json
vendored
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue