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);