From 4e4c7ebb40f4ad5476999e058b56db8da4095784 Mon Sep 17 00:00:00 2001 From: E98Developer Date: Wed, 6 May 2026 21:30:03 +0200 Subject: [PATCH] =?UTF-8?q?EV3-414=20Verzi=C3=B3v=C3=A1ltott=20teszt=20-?= =?UTF-8?q?=20K=C3=BCls=C5=91=20user=20k=C3=A9szlet=20m=C3=B3dos=C3=ADt?= =?UTF-8?q?=C3=A1s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductStocks/Tables/ProductStocksTable.php | 9 +++++++++ app/Providers/AppServiceProvider.php | 3 +++ 2 files changed, 12 insertions(+) diff --git a/app/Filament/SupplierPortal/Resources/ProductStocks/Tables/ProductStocksTable.php b/app/Filament/SupplierPortal/Resources/ProductStocks/Tables/ProductStocksTable.php index 68622e2..bfc859c 100644 --- a/app/Filament/SupplierPortal/Resources/ProductStocks/Tables/ProductStocksTable.php +++ b/app/Filament/SupplierPortal/Resources/ProductStocks/Tables/ProductStocksTable.php @@ -5,6 +5,7 @@ use App\Enums\StockStatusEnum; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\ToggleColumn; +use Filament\Tables\Filters\SelectFilter; use Filament\Tables\Table; class ProductStocksTable @@ -33,6 +34,14 @@ public static function configure(Table $table): Table : StockStatusEnum::OutOfStock; $record->save(); }), + ]) + ->filters([ + SelectFilter::make('stock_status') + ->label('Raktáron') + ->options([ + StockStatusEnum::InStock->value => 'Igen', + StockStatusEnum::OutOfStock->value => 'Nem', + ]), ]); } } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 2d118b8..59e212d 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -63,6 +63,9 @@ public function boot(): void \Livewire\Livewire::component('app.filament.auth.login', \App\Filament\Auth\Login::class); \Livewire\Livewire::component('app.filament.pages.calendar-test', \App\Filament\Pages\CalendarTest::class); \Livewire\Livewire::component('app.filament.widgets.delivery-calendar-widget', \App\Filament\Widgets\DeliveryCalendarWidget::class); + + \Livewire\Livewire::component('app.filament.supplier-portal.resources.product-stocks.pages.list-product-stocks', \App\Filament\SupplierPortal\Resources\ProductStocks\Pages\ListProductStocks::class); + \Livewire\Livewire::component('app.filament.supplier-portal.resources.product-stocks.pages.edit-product-stock', \App\Filament\SupplierPortal\Resources\ProductStocks\Pages\EditProductStock::class); /* \Livewire\Livewire::component('filament.livewire.notifications', \Filament\Livewire\Notifications::class); \Livewire\Livewire::component('filament.livewire.database-notifications', \Filament\Livewire\DatabaseNotifications::class);