Skip to content

Commit

Permalink
add filter and then will make exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 13, 2024
1 parent e49a01f commit 1a1b27f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Filament/Resources/EventResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Filament\Resources;

use App\Filament\Resources\EventResource\Pages;
use App\Models\Collection;
use App\Models\Event;
use Filament\Forms\Form;
use Filament\Resources\Resource;
Expand Down Expand Up @@ -41,6 +42,9 @@ public static function table(Table $table): Table
Tables\Filters\SelectFilter::make('title')
->options(Event::distinct('title')->orderBy('title')->pluck('title', 'title')),
DateRangeFilter::make('start_date'),
Tables\Filters\SelectFilter::make('collection_id')
->label('Collection')
->options(Collection::orderBy("name")->get()->pluck('name', 'id')),
])
->actions([
Tables\Actions\EditAction::make(),
Expand Down

0 comments on commit 1a1b27f

Please sign in to comment.