mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-27 10:37:13 +01:00
Compare commits
No commits in common. "8a9c2f1b0e5e4d709d32e6adefeb52626d258a92" and "10f15a37f42e360f1762e45c613fd33a09cb57a2" have entirely different histories.
8a9c2f1b0e
...
10f15a37f4
62 changed files with 648 additions and 2025 deletions
|
|
@ -35,7 +35,6 @@ use Filament\Tables\Columns\TextColumn;
|
||||||
use Filament\Tables\Columns\ImageColumn;
|
use Filament\Tables\Columns\ImageColumn;
|
||||||
use Filament\Tables\Columns\IconColumn;
|
use Filament\Tables\Columns\IconColumn;
|
||||||
use Filament\Tables\Actions\Action;
|
use Filament\Tables\Actions\Action;
|
||||||
use Filament\Support\Colors\Color;
|
|
||||||
|
|
||||||
class Reserve extends BasePage implements HasTable
|
class Reserve extends BasePage implements HasTable
|
||||||
{
|
{
|
||||||
|
|
@ -52,24 +51,22 @@ class Reserve extends BasePage implements HasTable
|
||||||
->query( Item::where('can_be_loaned', true)->where('type', "game"))
|
->query( Item::where('can_be_loaned', true)->where('type', "game"))
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('desc')
|
TextColumn::make('desc')
|
||||||
->label('Beskrivning')
|
->label('Description')
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
ImageColumn::make('image')
|
ImageColumn::make('image')
|
||||||
->label('Bild')
|
->label('Image'),
|
||||||
->disk('local')
|
|
||||||
->visibility('private'),
|
|
||||||
TextColumn::make('players')
|
TextColumn::make('players')
|
||||||
->label('Antal spelare')
|
->label('Players')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('play_time')
|
TextColumn::make('play_time')
|
||||||
->label('Speltid')
|
->label('Play Time')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('age')
|
TextColumn::make('age')
|
||||||
->label('Ålder')
|
->label('Age')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
IconColumn::make('reserved')
|
IconColumn::make('reserved')
|
||||||
->label('Tillgängligt')
|
->label('Available')
|
||||||
->falseIcon('heroicon-o-check-badge')
|
->falseIcon('heroicon-o-check-badge')
|
||||||
->trueIcon('heroicon-o-x-mark')
|
->trueIcon('heroicon-o-x-mark')
|
||||||
->falseColor('success')
|
->falseColor('success')
|
||||||
|
|
@ -79,50 +76,40 @@ class Reserve extends BasePage implements HasTable
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
SelectFilter::make('category_id')
|
SelectFilter::make('category_id')
|
||||||
|
->label('Category')
|
||||||
->multiple()
|
->multiple()
|
||||||
->preload()
|
|
||||||
->label('Kategori')
|
|
||||||
->options(Category::all()->where('type', 'game')->pluck('name', 'id')),
|
->options(Category::all()->where('type', 'game')->pluck('name', 'id')),
|
||||||
Filter::make('reserved')
|
Filter::make('reserved')
|
||||||
->label('Tillgänglig')
|
->label('Available')
|
||||||
->query(fn (Builder $query): Builder => $query->where('reserved', false))
|
->query(fn (Builder $query): Builder => $query->where('reserved', false))
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
->toggle()
|
->toggle()
|
||||||
],layout: FiltersLayout::AboveContent)
|
],layout: FiltersLayout::AboveContent)
|
||||||
->actions([
|
->actions([
|
||||||
Action::make('Mer info')
|
Action::make('More info')
|
||||||
->modalSubmitAction(false)
|
->modalSubmitAction(false)
|
||||||
->infolist([
|
->infolist([
|
||||||
Section::make('Spel')
|
Section::make('Game')
|
||||||
->schema([
|
->schema([
|
||||||
ImageEntry::make('image')
|
ImageEntry::make('image')
|
||||||
->label('Bild')
|
|
||||||
->width(300)
|
->width(300)
|
||||||
->height('auto')
|
->height('auto'),
|
||||||
->disk('local')
|
TextEntry::make('desc'),
|
||||||
->visibility('private'),
|
TextEntry::make('acquisition_date'),
|
||||||
TextEntry::make('desc')
|
TextEntry::make('category.name'),
|
||||||
->label('Beskrivning'),
|
TextEntry::make('players'),
|
||||||
TextEntry::make('acquisition_date')
|
TextEntry::make('play_time'),
|
||||||
->label('Inköpsdatum'),
|
TextEntry::make('age'),
|
||||||
TextEntry::make('category.name')
|
|
||||||
->label('Kategori'),
|
|
||||||
TextEntry::make('players')
|
|
||||||
->label('Antal spelare'),
|
|
||||||
TextEntry::make('play_time')
|
|
||||||
->label('Speltid'),
|
|
||||||
TextEntry::make('age')
|
|
||||||
->label('Ålder'),
|
|
||||||
])
|
])
|
||||||
->columns(),
|
->columns(),
|
||||||
]),
|
]),
|
||||||
Action::make('reserve')
|
Action::make('reserve')
|
||||||
->label('Reservera')
|
->label('Reserve')
|
||||||
->button()
|
->button()
|
||||||
->color('primary')
|
->color('success')
|
||||||
->form([
|
->form([
|
||||||
TextInput::make('username')
|
TextInput::make('username')
|
||||||
->label('Namn')
|
->label('Name')
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->label('Email')
|
->label('Email')
|
||||||
|
|
|
||||||
|
|
@ -23,36 +23,23 @@ class CategoryResource extends Resource
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-bookmark';
|
protected static ?string $navigationIcon = 'heroicon-o-bookmark';
|
||||||
|
|
||||||
public static function getNavigationLabel(): string
|
protected static ?string $modelLabel = 'Categories';
|
||||||
{
|
|
||||||
return __('Categories');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getPluralLabel(): string
|
protected static ?string $title = 'Categories';
|
||||||
{
|
|
||||||
return __('Categories');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getLabel(): string
|
|
||||||
{
|
|
||||||
return __('Category');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('name')
|
TextInput::make('name')
|
||||||
->translateLabel()
|
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
Select::make('type')
|
Select::make('type')
|
||||||
->translateLabel()
|
->required()
|
||||||
->required()
|
->options([
|
||||||
->options([
|
'game' => 'Game',
|
||||||
'game' => 'Game',
|
'item' => 'Item',
|
||||||
'item' => 'Item',
|
]),
|
||||||
]),
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,11 +49,9 @@ class CategoryResource extends Resource
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->translateLabel()
|
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('type')
|
TextColumn::make('type')
|
||||||
->label('Type')
|
->label('Type')
|
||||||
->translateLabel()
|
|
||||||
->searchable(),
|
->searchable(),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ class ListCategories extends ListRecords
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Actions\CreateAction::make()
|
Actions\CreateAction::make()->label('Create new'),
|
||||||
->label('Create new')
|
|
||||||
->translateLabel(),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,53 +45,34 @@ class ItemResource extends Resource
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-archive-box';
|
protected static ?string $navigationIcon = 'heroicon-o-archive-box';
|
||||||
|
|
||||||
public static function getNavigationLabel(): string
|
protected static ?string $modelLabel = 'Inventory';
|
||||||
{
|
|
||||||
return __('Inventory');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getPluralLabel(): string
|
|
||||||
{
|
|
||||||
return __('Inventory');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getLabel(): string
|
|
||||||
{
|
|
||||||
return __('Inventory');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
Radio::make('type')
|
Radio::make('type')
|
||||||
->translateLabel()
|
|
||||||
->options([
|
->options([
|
||||||
'game' => __('Game'),
|
'game' => 'Game',
|
||||||
'item' => __('Item'),
|
'item' => 'Item',
|
||||||
])
|
])
|
||||||
->default('game')
|
->default('game')
|
||||||
->live(),
|
->live(),
|
||||||
FileUpload::make('image')
|
FileUpload::make('image')
|
||||||
->label('Image')
|
->label('Image')
|
||||||
->translateLabel()
|
|
||||||
->minSize(25)
|
->minSize(25)
|
||||||
->maxSize(5500)
|
->maxSize(5500)
|
||||||
->columnSpan('full')
|
->columnSpan('full')
|
||||||
->disk('local')
|
->disk('public')
|
||||||
->visibility('private')
|
|
||||||
->image(),
|
->image(),
|
||||||
TextInput::make('desc')
|
TextInput::make('desc')
|
||||||
->label('Description')
|
->label('Description')
|
||||||
->translateLabel()
|
|
||||||
->maxLength(255)
|
->maxLength(255)
|
||||||
->default(null),
|
->default(null),
|
||||||
DatePicker::make('acquisition_date')
|
DatePicker::make('acquisition_date')
|
||||||
->label('Acquisition date')
|
->label('Acquisition date'),
|
||||||
->translateLabel(),
|
|
||||||
TextInput::make('quantity')
|
TextInput::make('quantity')
|
||||||
->label('Quantity')
|
->label('Quantity')
|
||||||
->translateLabel()
|
|
||||||
->numeric()
|
->numeric()
|
||||||
->minValue(0)
|
->minValue(0)
|
||||||
->maxValue(1000)
|
->maxValue(1000)
|
||||||
|
|
@ -99,33 +80,27 @@ class ItemResource extends Resource
|
||||||
->hidden(fn ($get): string => $get('type') == 'game'),
|
->hidden(fn ($get): string => $get('type') == 'game'),
|
||||||
Select::make('category_id')
|
Select::make('category_id')
|
||||||
->label('Category')
|
->label('Category')
|
||||||
->translateLabel()
|
|
||||||
->options(Category::all()->pluck('name', 'id')),
|
->options(Category::all()->pluck('name', 'id')),
|
||||||
TextInput::make('cost')
|
TextInput::make('cost')
|
||||||
->label('Price')
|
->label('Price')
|
||||||
->translateLabel()
|
|
||||||
->default(null),
|
->default(null),
|
||||||
TextInput::make('age')
|
TextInput::make('age')
|
||||||
->label('Age')
|
->label('Age')
|
||||||
->translateLabel()
|
|
||||||
->maxLength(255)
|
->maxLength(255)
|
||||||
->default(null)
|
->default(null)
|
||||||
->hidden(fn ($get): string => $get('type') == 'item'),
|
->hidden(fn ($get): string => $get('type') == 'item'),
|
||||||
TextInput::make('players')
|
TextInput::make('players')
|
||||||
->label('Players')
|
->label('Players')
|
||||||
->translateLabel()
|
|
||||||
->maxLength(255)
|
->maxLength(255)
|
||||||
->default(null)
|
->default(null)
|
||||||
->hidden(fn ($get): string => $get('type') == 'item'),
|
->hidden(fn ($get): string => $get('type') == 'item'),
|
||||||
TextInput::make('play_time')
|
TextInput::make('play_time')
|
||||||
->label('Play time')
|
->label('Play time')
|
||||||
->translateLabel()
|
|
||||||
->maxLength(255)
|
->maxLength(255)
|
||||||
->default(null)
|
->default(null)
|
||||||
->hidden(fn ($get): string => $get('type') == 'item'),
|
->hidden(fn ($get): string => $get('type') == 'item'),
|
||||||
Toggle::make('can_be_loaned')
|
Toggle::make('can_be_loaned')
|
||||||
->label('Can be loaned')
|
->label('Can be loaned')
|
||||||
->translateLabel()
|
|
||||||
->hidden(fn ($get): string => $get('type') == 'game'),
|
->hidden(fn ($get): string => $get('type') == 'game'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
@ -136,22 +111,16 @@ class ItemResource extends Resource
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('desc')
|
TextColumn::make('desc')
|
||||||
->label('Description')
|
->label('Description')
|
||||||
->translateLabel()
|
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
//TextColumn::make('type')
|
TextColumn::make('type')
|
||||||
// ->label('Type')
|
->label('Type')
|
||||||
// ->translateLabel()
|
->searchable()
|
||||||
// ->searchable()
|
->sortable(),
|
||||||
// ->sortable(),
|
|
||||||
ImageColumn::make('image')
|
ImageColumn::make('image')
|
||||||
->label('Image')
|
->label('Image'),
|
||||||
->translateLabel()
|
|
||||||
->disk('local')
|
|
||||||
->visibility('private'),
|
|
||||||
IconColumn::make('can_be_loaned')
|
IconColumn::make('can_be_loaned')
|
||||||
->label('Can be loaned')
|
->label('Can be loaned')
|
||||||
->translateLabel()
|
|
||||||
->sortable()
|
->sortable()
|
||||||
->trueIcon('heroicon-o-check-badge')
|
->trueIcon('heroicon-o-check-badge')
|
||||||
->falseIcon('heroicon-o-x-mark')
|
->falseIcon('heroicon-o-x-mark')
|
||||||
|
|
@ -159,7 +128,6 @@ class ItemResource extends Resource
|
||||||
->falseColor('danger'),
|
->falseColor('danger'),
|
||||||
IconColumn::make('reserved')
|
IconColumn::make('reserved')
|
||||||
->label('Available')
|
->label('Available')
|
||||||
->translateLabel()
|
|
||||||
->falseIcon('heroicon-o-check-badge')
|
->falseIcon('heroicon-o-check-badge')
|
||||||
->trueIcon('heroicon-o-x-mark')
|
->trueIcon('heroicon-o-x-mark')
|
||||||
->falseColor('success')
|
->falseColor('success')
|
||||||
|
|
@ -168,79 +136,59 @@ class ItemResource extends Resource
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
SelectFilter::make('type')
|
SelectFilter::make('type')
|
||||||
->translateLabel()
|
|
||||||
->multiple()
|
->multiple()
|
||||||
->options([
|
->options([
|
||||||
'game' => __('Game'),
|
'game' => 'Game',
|
||||||
'item' => __('Item'),
|
'item' => 'Item',
|
||||||
]),
|
]),
|
||||||
SelectFilter::make('category_id')
|
SelectFilter::make('category_id')
|
||||||
|
->label('Item Category')
|
||||||
|
->multiple()
|
||||||
|
->options(Category::all()->where('type', 'item')->pluck('name', 'id')),
|
||||||
|
SelectFilter::make('category_id')
|
||||||
->label('Category')
|
->label('Category')
|
||||||
->translateLabel()
|
|
||||||
->multiple()
|
->multiple()
|
||||||
->options(
|
->options(
|
||||||
Category::all()->pluck('name', 'id'),
|
Category::all()->pluck('name', 'id'),
|
||||||
),
|
),
|
||||||
Filter::make('reserved')
|
Filter::make('reserved')
|
||||||
->label('Available')
|
->label('Available')
|
||||||
->translateLabel()
|
|
||||||
->query(fn (Builder $query): Builder => $query->where('reserved', false))
|
->query(fn (Builder $query): Builder => $query->where('reserved', false))
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
->toggle(),
|
->toggle(),
|
||||||
Filter::make('can_be_loaned')
|
Filter::make('can_be_loaned')
|
||||||
->label('Can be loaned')
|
->label('Can be loaned')
|
||||||
->translateLabel()
|
|
||||||
->query(fn (Builder $query): Builder => $query->where('can_be_loaned', true))
|
->query(fn (Builder $query): Builder => $query->where('can_be_loaned', true))
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
->toggle()
|
->toggle()
|
||||||
],layout: FiltersLayout::AboveContent)
|
],layout: FiltersLayout::AboveContent)
|
||||||
->actions([
|
->actions([
|
||||||
Action::make('More info')
|
Action::make('More info')
|
||||||
->translateLabel()
|
|
||||||
->modalSubmitAction(false)
|
->modalSubmitAction(false)
|
||||||
->infolist([
|
->infolist([
|
||||||
Section::make('')
|
Section::make('Game')
|
||||||
->schema([
|
->schema([
|
||||||
ImageEntry::make('image')
|
ImageEntry::make('image')
|
||||||
->translateLabel()
|
|
||||||
->width(300)
|
->width(300)
|
||||||
->height('auto')
|
->height('auto'),
|
||||||
->disk('local')
|
TextEntry::make('desc'),
|
||||||
->visibility('private'),
|
TextEntry::make('acquisition_date'),
|
||||||
TextEntry::make('desc')
|
TextEntry::make('category.name'),
|
||||||
->label('Description')
|
TextEntry::make('players'),
|
||||||
->translateLabel(),
|
TextEntry::make('play_time'),
|
||||||
TextEntry::make('acquisition_date')
|
TextEntry::make('age'),
|
||||||
->translateLabel(),
|
TextEntry::make('cost'),
|
||||||
TextEntry::make('category.name')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('players')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('play_time')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('age')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('cost')
|
|
||||||
->translateLabel(),
|
|
||||||
])
|
])
|
||||||
->columns()
|
->columns()
|
||||||
->hidden(fn ($record) => $record->type === "item"),
|
->hidden(fn ($record) => $record->type === "item"),
|
||||||
Section::make('')
|
Section::make('Item')
|
||||||
->translateLabel()
|
|
||||||
->schema([
|
->schema([
|
||||||
ImageEntry::make('image')
|
ImageEntry::make('image'),
|
||||||
->translateLabel(),
|
TextEntry::make('desc'),
|
||||||
TextEntry::make('desc')
|
TextEntry::make('acquisition_date'),
|
||||||
->label('Description')
|
TextEntry::make('category.name'),
|
||||||
->translateLabel(),
|
TextEntry::make('quantity'),
|
||||||
TextEntry::make('acquisition_date')
|
TextEntry::make('cost'),
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('category.name')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('quantity')
|
|
||||||
->translateLabel(),
|
|
||||||
TextEntry::make('cost')
|
|
||||||
->translateLabel(),
|
|
||||||
])
|
])
|
||||||
->columns()
|
->columns()
|
||||||
->hidden(fn ($record) => $record->type === "game"),
|
->hidden(fn ($record) => $record->type === "game"),
|
||||||
|
|
@ -252,17 +200,14 @@ class ItemResource extends Resource
|
||||||
->iconPosition(IconPosition::After),
|
->iconPosition(IconPosition::After),
|
||||||
Tables\Actions\Action::make('reserve')
|
Tables\Actions\Action::make('reserve')
|
||||||
->label('Reserve')
|
->label('Reserve')
|
||||||
->translateLabel()
|
|
||||||
->button()
|
->button()
|
||||||
->color('primary')
|
->color('success')
|
||||||
->form([
|
->form([
|
||||||
TextInput::make('username')
|
TextInput::make('username')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->translateLabel()
|
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->label('Email')
|
->label('Email')
|
||||||
->translateLabel()
|
|
||||||
->required(),
|
->required(),
|
||||||
])
|
])
|
||||||
->action(function (array $data, Item $record): void {
|
->action(function (array $data, Item $record): void {
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,6 @@ class EditItem extends EditRecord
|
||||||
|
|
||||||
public function getHeading(): string
|
public function getHeading(): string
|
||||||
{
|
{
|
||||||
return $this->getRecord()->desc;
|
return 'Edit: ' . $this->getRecord()->desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ class ListItems extends ListRecords
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Actions\CreateAction::make()
|
Actions\CreateAction::make()->label('Create new'),
|
||||||
->label('Create new')
|
|
||||||
->translateLabel(),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,20 +31,9 @@ class ReserveditemResource extends Resource
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-archive-box-x-mark';
|
protected static ?string $navigationIcon = 'heroicon-o-archive-box-x-mark';
|
||||||
|
|
||||||
public static function getNavigationLabel(): string
|
protected static ?string $modelLabel = 'Reservations';
|
||||||
{
|
|
||||||
return __('Reservations');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getPluralLabel(): string
|
protected static ?string $title = 'Reserve an item';
|
||||||
{
|
|
||||||
return __('Reservations');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getLabel(): string
|
|
||||||
{
|
|
||||||
return __('Reservation');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
|
|
@ -52,17 +41,14 @@ class ReserveditemResource extends Resource
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('username')
|
TextInput::make('username')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->translateLabel()
|
|
||||||
->default(null),
|
->default(null),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->label('Email')
|
->label('Email')
|
||||||
->default(null),
|
->default(null),
|
||||||
Section::make('')
|
Section::make('')
|
||||||
->schema([
|
->schema([
|
||||||
Toggle::make('delivered')
|
Toggle::make('delivered'),
|
||||||
->translateLabel(),
|
|
||||||
Toggle::make('returned')
|
Toggle::make('returned')
|
||||||
->translateLabel()
|
|
||||||
])
|
])
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
@ -75,30 +61,24 @@ class ReserveditemResource extends Resource
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('item.desc')
|
TextColumn::make('item.desc')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('username')
|
TextColumn::make('username')
|
||||||
->label('User')
|
->label('User')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('email')
|
TextColumn::make('email')
|
||||||
->label('Email')
|
->label('Email')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('reserved_date')
|
TextColumn::make('reserved_date')
|
||||||
->label('Reservation date')
|
->label('Reservation date')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('delivered_date')
|
TextColumn::make('delivered_date')
|
||||||
->label('Delivery date')
|
->label('Delivery date')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('return_date')
|
TextColumn::make('return_date')
|
||||||
->label('Return date')
|
->label('Return date')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('returned_date')
|
TextColumn::make('returned_date')
|
||||||
->label('Returned')
|
->label('Returned')
|
||||||
->translateLabel()
|
|
||||||
->sortable(),
|
->sortable(),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,6 @@ class EditReserveditem extends EditRecord
|
||||||
|
|
||||||
public function getHeading(): string
|
public function getHeading(): string
|
||||||
{
|
{
|
||||||
return Item::where('id', $this->getRecord()->item_id)->pluck('desc')->first();
|
return 'Edit: ' . Item::where('id', $this->getRecord()->item_id)->pluck('desc')->first();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ class ListReserveditems extends ListRecords
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Actions\CreateAction::make()
|
Actions\CreateAction::make()->label('Create new'),
|
||||||
->label('Create new')
|
|
||||||
->translateLabel(),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,42 +29,23 @@ class UserResource extends Resource
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-users';
|
protected static ?string $navigationIcon = 'heroicon-o-users';
|
||||||
|
|
||||||
public static function getNavigationLabel(): string
|
|
||||||
{
|
|
||||||
return __('Users');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getPluralLabel(): string
|
|
||||||
{
|
|
||||||
return __('Users');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getLabel(): string
|
|
||||||
{
|
|
||||||
return __('User');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('name')
|
TextInput::make('name')
|
||||||
->translateLabel()
|
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->email()
|
->email()
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
DateTimePicker::make('email_verified_at')
|
DateTimePicker::make('email_verified_at'),
|
||||||
->translateLabel(),
|
|
||||||
TextInput::make('password')
|
TextInput::make('password')
|
||||||
->translateLabel()
|
|
||||||
->password()
|
->password()
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
Toggle::make('is_admin')
|
Toggle::make('is_admin')
|
||||||
->translateLabel()
|
|
||||||
->required(),
|
->required(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
@ -75,13 +56,11 @@ class UserResource extends Resource
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->translateLabel()
|
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('email')
|
TextColumn::make('email')
|
||||||
->searchable(),
|
->searchable(),
|
||||||
IconColumn::make('is_admin')
|
IconColumn::make('is_admin')
|
||||||
->boolean()
|
->boolean(),
|
||||||
->translateLabel(),
|
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ class ListUsers extends ListRecords
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Actions\CreateAction::make()
|
Actions\CreateAction::make()->label('Create new'),
|
||||||
->label('Create new')
|
|
||||||
->translateLabel(),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@ class AdminWidget extends BaseWidget
|
||||||
protected function getStats(): array
|
protected function getStats(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
//Card::make(__('Total number of users'), User::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::count() ),
|
||||||
Card::make(__('Total number of items'), Item::where('type', 'item')->count() ),
|
Card::make('Reserved items', Reserveditem::count() ),
|
||||||
Card::make(__('Reserved games and items'), Reserveditem::count() ),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,6 @@ namespace App\Providers;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Vite;
|
use Illuminate\Support\Facades\Vite;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use BezhanSalleh\FilamentLanguageSwitch\LanguageSwitch;
|
|
||||||
use Filament\Support\Colors\Color;
|
|
||||||
use Filament\Support\Facades\FilamentColor;
|
|
||||||
|
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
@ -25,14 +21,5 @@ class AppServiceProvider extends ServiceProvider
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
Vite::prefetch(concurrency: 3);
|
Vite::prefetch(concurrency: 3);
|
||||||
|
|
||||||
LanguageSwitch::configureUsing(function (LanguageSwitch $switch) {
|
|
||||||
$switch
|
|
||||||
->locales(['en','sv']); // also accepts a closure
|
|
||||||
});
|
|
||||||
|
|
||||||
FilamentColor::register([
|
|
||||||
'primary' => Color::hex('#0080bb'),
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"bezhansalleh/filament-language-switch": "^3.1",
|
|
||||||
"filament/filament": "^3.2",
|
"filament/filament": "^3.2",
|
||||||
"inertiajs/inertia-laravel": "^2.0",
|
"inertiajs/inertia-laravel": "^2.0",
|
||||||
"laravel/framework": "^11.31",
|
"laravel/framework": "^11.31",
|
||||||
|
|
|
||||||
1100
composer.lock
generated
1100
composer.lock
generated
File diff suppressed because it is too large
Load diff
12
lang/vendor/filament-panels/en/global-search.php
vendored
12
lang/vendor/filament-panels/en/global-search.php
vendored
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'field' => [
|
|
||||||
'label' => 'Global search',
|
|
||||||
'placeholder' => 'Search',
|
|
||||||
],
|
|
||||||
|
|
||||||
'no_results_message' => 'No search results found.',
|
|
||||||
|
|
||||||
];
|
|
||||||
63
lang/vendor/filament-panels/en/layout.php
vendored
63
lang/vendor/filament-panels/en/layout.php
vendored
|
|
@ -1,63 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'direction' => 'ltr',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'billing' => [
|
|
||||||
'label' => 'Manage subscription',
|
|
||||||
],
|
|
||||||
|
|
||||||
'logout' => [
|
|
||||||
'label' => 'Sign out',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_database_notifications' => [
|
|
||||||
'label' => 'Open notifications',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_user_menu' => [
|
|
||||||
'label' => 'User menu',
|
|
||||||
],
|
|
||||||
|
|
||||||
'sidebar' => [
|
|
||||||
|
|
||||||
'collapse' => [
|
|
||||||
'label' => 'Collapse sidebar',
|
|
||||||
],
|
|
||||||
|
|
||||||
'expand' => [
|
|
||||||
'label' => 'Expand sidebar',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'theme_switcher' => [
|
|
||||||
|
|
||||||
'dark' => [
|
|
||||||
'label' => 'Enable dark theme',
|
|
||||||
],
|
|
||||||
|
|
||||||
'light' => [
|
|
||||||
'label' => 'Enable light theme',
|
|
||||||
],
|
|
||||||
|
|
||||||
'system' => [
|
|
||||||
'label' => 'Enable system theme',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'avatar' => [
|
|
||||||
'alt' => 'Avatar of :name',
|
|
||||||
],
|
|
||||||
|
|
||||||
'logo' => [
|
|
||||||
'alt' => ':name logo',
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'label' => 'Profile',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email address',
|
|
||||||
],
|
|
||||||
|
|
||||||
'name' => [
|
|
||||||
'label' => 'Name',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'New password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Confirm new password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Save changes',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Saved',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Cancel',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Verify your email address',
|
|
||||||
|
|
||||||
'heading' => 'Verify your email address',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'resend_notification' => [
|
|
||||||
'label' => 'Resend it',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'messages' => [
|
|
||||||
'notification_not_received' => 'Not received the email we sent?',
|
|
||||||
'notification_sent' => 'We\'ve sent an email to :email containing instructions on how to verify your email address.',
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'notification_resent' => [
|
|
||||||
'title' => 'We\'ve resent the email.',
|
|
||||||
],
|
|
||||||
|
|
||||||
'notification_resend_throttled' => [
|
|
||||||
'title' => 'Too many resend attempts',
|
|
||||||
'body' => 'Please try again in :seconds seconds.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Login',
|
|
||||||
|
|
||||||
'heading' => 'Sign in',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'register' => [
|
|
||||||
'before' => 'or',
|
|
||||||
'label' => 'sign up for an account',
|
|
||||||
],
|
|
||||||
|
|
||||||
'request_password_reset' => [
|
|
||||||
'label' => 'Forgot password?',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email address',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'remember' => [
|
|
||||||
'label' => 'Remember me',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'authenticate' => [
|
|
||||||
'label' => 'Sign in',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'messages' => [
|
|
||||||
|
|
||||||
'failed' => 'These credentials do not match our records.',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'Too many login attempts',
|
|
||||||
'body' => 'Please try again in :seconds seconds.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Reset your password',
|
|
||||||
|
|
||||||
'heading' => 'Forgot password?',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'login' => [
|
|
||||||
'label' => 'back to login',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email address',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'request' => [
|
|
||||||
'label' => 'Send email',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'Too many requests',
|
|
||||||
'body' => 'Please try again in :seconds seconds.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Reset your password',
|
|
||||||
|
|
||||||
'heading' => 'Reset your password',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email address',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Password',
|
|
||||||
'validation_attribute' => 'password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Confirm password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'reset' => [
|
|
||||||
'label' => 'Reset password',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'Too many reset attempts',
|
|
||||||
'body' => 'Please try again in :seconds seconds.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Register',
|
|
||||||
|
|
||||||
'heading' => 'Sign up',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'login' => [
|
|
||||||
'before' => 'or',
|
|
||||||
'label' => 'sign in to your account',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email address',
|
|
||||||
],
|
|
||||||
|
|
||||||
'name' => [
|
|
||||||
'label' => 'Name',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Password',
|
|
||||||
'validation_attribute' => 'password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Confirm password',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'register' => [
|
|
||||||
'label' => 'Sign up',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'Too many registration attempts',
|
|
||||||
'body' => 'Please try again in :seconds seconds.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Dashboard',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'filter' => [
|
|
||||||
|
|
||||||
'label' => 'Filter',
|
|
||||||
|
|
||||||
'modal' => [
|
|
||||||
|
|
||||||
'heading' => 'Filter',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'apply' => [
|
|
||||||
|
|
||||||
'label' => 'Apply',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Save changes',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Saved',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Create :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'Create',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Cancel',
|
|
||||||
],
|
|
||||||
|
|
||||||
'create' => [
|
|
||||||
'label' => 'Create',
|
|
||||||
],
|
|
||||||
|
|
||||||
'create_another' => [
|
|
||||||
'label' => 'Create & create another',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'created' => [
|
|
||||||
'title' => 'Created',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Edit :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'Edit',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Cancel',
|
|
||||||
],
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Save changes',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'content' => [
|
|
||||||
|
|
||||||
'tab' => [
|
|
||||||
'label' => 'Edit',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Saved',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'breadcrumb' => 'List',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'View :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'View',
|
|
||||||
|
|
||||||
'content' => [
|
|
||||||
|
|
||||||
'tab' => [
|
|
||||||
'label' => 'View',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'body' => 'You have unsaved changes. Are you sure you want to leave this page?',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'logout' => [
|
|
||||||
'label' => 'Sign out',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'welcome' => 'Welcome',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'open_documentation' => [
|
|
||||||
'label' => 'Documentation',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_github' => [
|
|
||||||
'label' => 'GitHub',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
39
lang/vendor/filament-panels/sv.json
vendored
39
lang/vendor/filament-panels/sv.json
vendored
|
|
@ -1,39 +0,0 @@
|
||||||
{
|
|
||||||
"Type": "Typ",
|
|
||||||
"Name": "Namn",
|
|
||||||
"Create new": "Skapa ny",
|
|
||||||
"Categories": "Kategorier",
|
|
||||||
"Inventory": "Lager",
|
|
||||||
"Category": "Kategori",
|
|
||||||
"Game": "Spel",
|
|
||||||
"Item": "Sak",
|
|
||||||
"Image": "Bild",
|
|
||||||
"Description": "Beskrivning",
|
|
||||||
"Acquisition date": "Inköpsdatum",
|
|
||||||
"Quantity": "Antal",
|
|
||||||
"Price": "Pris",
|
|
||||||
"Age": "Ålder",
|
|
||||||
"Players": "Spelare",
|
|
||||||
"Play time": "Speltid",
|
|
||||||
"Can be loaned": "Kan bli utlånad",
|
|
||||||
"Available": "Tillgänglig",
|
|
||||||
"More info": "Mer info",
|
|
||||||
"Reserve": "Reservera",
|
|
||||||
"Cost": "Pris",
|
|
||||||
"Edit": "Redigera",
|
|
||||||
"User": "Användare",
|
|
||||||
"Reservations": "Reservationer",
|
|
||||||
"Reservation": "Reservation",
|
|
||||||
"Reservation date": "Reservationsdatum",
|
|
||||||
"Delivery date": "Utlämningsdatum",
|
|
||||||
"Return date": "Årterlämningsdatum",
|
|
||||||
"Returned": "Återlämnad",
|
|
||||||
"Delivered": "Utlämnad",
|
|
||||||
"Users": "Användare",
|
|
||||||
"Is admin": "Admin",
|
|
||||||
"Password": "Lösenord",
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
12
lang/vendor/filament-panels/sv/global-search.php
vendored
12
lang/vendor/filament-panels/sv/global-search.php
vendored
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'field' => [
|
|
||||||
'label' => 'Global sökning',
|
|
||||||
'placeholder' => 'Sök',
|
|
||||||
],
|
|
||||||
|
|
||||||
'no_results_message' => 'Inga sökresultat.',
|
|
||||||
|
|
||||||
];
|
|
||||||
63
lang/vendor/filament-panels/sv/layout.php
vendored
63
lang/vendor/filament-panels/sv/layout.php
vendored
|
|
@ -1,63 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'direction' => 'ltr',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'billing' => [
|
|
||||||
'label' => 'Hantera prenumeration',
|
|
||||||
],
|
|
||||||
|
|
||||||
'logout' => [
|
|
||||||
'label' => 'Logga ut',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_database_notifications' => [
|
|
||||||
'label' => 'Öppna notiser',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_user_menu' => [
|
|
||||||
'label' => 'Användarmeny',
|
|
||||||
],
|
|
||||||
|
|
||||||
'sidebar' => [
|
|
||||||
|
|
||||||
'collapse' => [
|
|
||||||
'label' => 'Dölj sidopanel',
|
|
||||||
],
|
|
||||||
|
|
||||||
'expand' => [
|
|
||||||
'label' => 'Visa sidopanel',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'theme_switcher' => [
|
|
||||||
|
|
||||||
'dark' => [
|
|
||||||
'label' => 'Använd mörkt tema',
|
|
||||||
],
|
|
||||||
|
|
||||||
'light' => [
|
|
||||||
'label' => 'Använd ljust tema',
|
|
||||||
],
|
|
||||||
|
|
||||||
'system' => [
|
|
||||||
'label' => 'Följ systemets tema',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'avatar' => [
|
|
||||||
'alt' => 'Avatar för :name',
|
|
||||||
],
|
|
||||||
|
|
||||||
'logo' => [
|
|
||||||
'alt' => ':name logotyp',
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'label' => 'Profil',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Mejladress',
|
|
||||||
],
|
|
||||||
|
|
||||||
'name' => [
|
|
||||||
'label' => 'Namn',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Nytt lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Bekräfta nytt lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Spara ändringar',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Sparades',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Avbryt',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Verifiera din mejladress',
|
|
||||||
|
|
||||||
'heading' => 'Verifiera din mejladress',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'resend_notification' => [
|
|
||||||
'label' => 'Skicka igen',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'messages' => [
|
|
||||||
'notification_not_received' => 'Inte fått mejlet vi skickade?',
|
|
||||||
'notification_sent' => 'Vi skickade ett meddelande till :email med instruktioner på hur du verifierar din mejladress.',
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'notification_resent' => [
|
|
||||||
'title' => 'Vi skickade meddelandet igen.',
|
|
||||||
],
|
|
||||||
|
|
||||||
'notification_resend_throttled' => [
|
|
||||||
'title' => 'För många försök att skicka igen',
|
|
||||||
'body' => 'Vänligen försök igen om :seconds sekunder.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Logga in',
|
|
||||||
|
|
||||||
'heading' => 'Logga in',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'register' => [
|
|
||||||
'before' => 'eller',
|
|
||||||
'label' => 'skapa ett konto',
|
|
||||||
],
|
|
||||||
|
|
||||||
'request_password_reset' => [
|
|
||||||
'label' => 'Glömt ditt lösenord?',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Email',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'remember' => [
|
|
||||||
'label' => 'Kom ihåg mig',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'authenticate' => [
|
|
||||||
'label' => 'Logga in',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'messages' => [
|
|
||||||
|
|
||||||
'failed' => 'Inloggningsuppgifterna matchar inte våra register.',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'För många inloggningsförsök',
|
|
||||||
'body' => 'Vänligen försök igen om :seconds sekunder.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Återställ ditt lösenord',
|
|
||||||
|
|
||||||
'heading' => 'Glömt ditt lösenord?',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'login' => [
|
|
||||||
'label' => 'tillbaka till inloggningen',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Mejladress',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'request' => [
|
|
||||||
'label' => 'Skicka mejlmeddelande',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'För många förfrågningar',
|
|
||||||
'body' => 'Vänligen försök igen om :seconds sekunder.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Återställ ditt lösenord',
|
|
||||||
|
|
||||||
'heading' => 'Återställ ditt lösenord',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Mejladress',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Lösenord',
|
|
||||||
'validation_attribute' => 'lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Bekräfta lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'reset' => [
|
|
||||||
'label' => 'Återställ lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'För många förfrågningar om återställning',
|
|
||||||
'body' => 'Vänligen försök igen om :seconds sekunder.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Registrera',
|
|
||||||
|
|
||||||
'heading' => 'Skapa konto',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'login' => [
|
|
||||||
'before' => 'eller',
|
|
||||||
'label' => 'logga in på ditt konto',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'email' => [
|
|
||||||
'label' => 'Mejladress',
|
|
||||||
],
|
|
||||||
|
|
||||||
'name' => [
|
|
||||||
'label' => 'Namn',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password' => [
|
|
||||||
'label' => 'Lösenord',
|
|
||||||
'validation_attribute' => 'lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'password_confirmation' => [
|
|
||||||
'label' => 'Bekräfta lösenord',
|
|
||||||
],
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'register' => [
|
|
||||||
'label' => 'Skapa konto',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'throttled' => [
|
|
||||||
'title' => 'För många registreringsförsök',
|
|
||||||
'body' => 'Vänligen försök igen om :seconds sekunder.',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Dashboard',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'filter' => [
|
|
||||||
|
|
||||||
'label' => 'Filter',
|
|
||||||
|
|
||||||
'modal' => [
|
|
||||||
|
|
||||||
'heading' => 'Filter',
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'apply' => [
|
|
||||||
|
|
||||||
'label' => 'Använd',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Spara ändringar',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Sparades',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Skapa :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'Skapa',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Avbryt',
|
|
||||||
],
|
|
||||||
|
|
||||||
'create' => [
|
|
||||||
'label' => 'Skapa',
|
|
||||||
],
|
|
||||||
|
|
||||||
'create_another' => [
|
|
||||||
'label' => 'Skapa & skapa en till',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'created' => [
|
|
||||||
'title' => 'Skapades',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Redigera :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'Redigera',
|
|
||||||
|
|
||||||
'form' => [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'cancel' => [
|
|
||||||
'label' => 'Avbryt',
|
|
||||||
],
|
|
||||||
|
|
||||||
'save' => [
|
|
||||||
'label' => 'Spara ändringar',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'content' => [
|
|
||||||
|
|
||||||
'tab' => [
|
|
||||||
'label' => 'Redigera',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'notifications' => [
|
|
||||||
|
|
||||||
'saved' => [
|
|
||||||
'title' => 'Sparades',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'breadcrumb' => 'Lista',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'title' => 'Visa :label',
|
|
||||||
|
|
||||||
'breadcrumb' => 'Visa',
|
|
||||||
|
|
||||||
'content' => [
|
|
||||||
|
|
||||||
'tab' => [
|
|
||||||
'label' => 'Visa',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'body' => 'Du har osparade ändringar. Är du säker på att du vill lämna sidan?',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'logout' => [
|
|
||||||
'label' => 'Logga ut',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
'welcome' => 'Välkommen',
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
|
|
||||||
'actions' => [
|
|
||||||
|
|
||||||
'open_documentation' => [
|
|
||||||
'label' => 'Dokumentation',
|
|
||||||
],
|
|
||||||
|
|
||||||
'open_github' => [
|
|
||||||
'label' => 'GitHub',
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},reorderTags:function(t){let e=this.state.splice(t.oldIndex,1)[0];this.state.splice(t.newIndex,0,e),this.state=[...this.state]},input:{"x-on:blur":"createTag()","x-model":"newTag","x-on:keydown"(t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},"x-on:paste"(){this.$nextTick(()=>{if(n.length===0){this.createTag();return}let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default};
|
function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},reorderTags:function(t){let e=this.state.splice(t.oldIndex,1)[0];this.state.splice(t.newIndex,0,e),this.state=[...this.state]},input:{["x-on:blur"]:"createTag()",["x-model"]:"newTag",["x-on:keydown"](t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},["x-on:paste"](){this.$nextTick(()=>{if(n.length===0){this.createTag();return}let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default};
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -6,8 +6,8 @@
|
||||||
<h1 class="fi-logo flex text-xl font-bold leading-5 tracking-tight text-gray-950 dark:text-white">vBytes</h1>
|
<h1 class="fi-logo flex text-xl font-bold leading-5 tracking-tight text-gray-950 dark:text-white">vBytes</h1>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="py-12 mx-auto h-full w-full px-4 md:px-6 lg:px-8 max-w-7xl">
|
<div class="py-12 mx-auto h-full w-full px-4 md:px-6 lg:px-8 max-w-7xl">
|
||||||
<h1 class="fi-header-heading text-2xl font-bold tracking-tight text-gray-950 dark:text-white sm:text-3xl">Reservera spel</h1>
|
<h1 class="fi-header-heading text-2xl font-bold tracking-tight text-gray-950 dark:text-white sm:text-3xl">Game booking</h1>
|
||||||
<p class="py-4">Välkommen! Här kan du reservera spel som du gärna vill låna.</p>
|
<p class="py-4">Welcome! Here you can make a reservation for a game.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="mx-auto h-full w-full px-4 md:px-6 lg:px-8 max-w-7xl">
|
<div class="mx-auto h-full w-full px-4 md:px-6 lg:px-8 max-w-7xl">
|
||||||
{{ $this->table }}
|
{{ $this->table }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue