diff --git a/app/Filament/Resources/JobResource.php b/app/Filament/Resources/JobResource.php index 7b17d62..efbdab1 100644 --- a/app/Filament/Resources/JobResource.php +++ b/app/Filament/Resources/JobResource.php @@ -29,6 +29,7 @@ use Filament\Tables\Columns\ColorColumn; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Filters\Filter; +use Filament\Tables\Filters\SelectFilter; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection; @@ -197,6 +198,12 @@ public static function table(Table $table): Table fn (Builder $query): Builder => $query->orWhere(fn ($query) => $query->whereNotNull('started_at')->whereNotNull('failed_at')->whereNull('completed_at')), ); }), + SelectFilter::make('color_hex') + ->label('Color') + ->multiple() + ->options(auth()->user()->currentTeam->materials->pluck('name', 'color_hex')), + SelectFilter::make('printType')->relationship('printType', 'name'), + SelectFilter::make('user')->relationship('user', 'name'), ]) ->defaultSort('created_at', 'desc') ->actions([