Skip to content

Commit

Permalink
feat: issue-50 - Update Presentation columns
Browse files Browse the repository at this point in the history
  • Loading branch information
alkrauss48 committed Oct 26, 2024
1 parent b0fbbcd commit dfc6c7a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/Filament/Resources/PresentationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,15 @@ function () {
public static function table(Table $table): Table
{
return $table
->defaultSort('updated_at', 'desc')
->columns([
SpatieMediaLibraryImageColumn::make('thumbnail')->collection('thumbnail'),
Tables\Columns\TextColumn::make('title')
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('slug')
->sortable()
->toggleable()
->searchable(),
Tables\Columns\ToggleColumn::make('is_published')
->label('Published')
Expand All @@ -139,15 +141,15 @@ public static function table(Table $table): Table
->hidden(fn () => ! auth()->user()->isAdministrator())
->sortable(),
Tables\Columns\TextColumn::make('created_at')
->dateTime()
->date()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
Tables\Columns\TextColumn::make('updated_at')
->dateTime()
->date()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
->toggleable(),
Tables\Columns\TextColumn::make('deleted_at')
->dateTime()
->date()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
])
Expand Down

0 comments on commit dfc6c7a

Please sign in to comment.