Update DomainResource.php

This commit is contained in:
Bozhidar 2024-08-05 14:30:21 +03:00
parent d7b4206599
commit b80f6d04ca

View file

@ -314,7 +314,10 @@ class DomainResource extends Resource
// Tables\Columns\TextColumn::make('customer.name')
// ->searchable()
// ->sortable(),
Tables\Columns\TextColumn::make('status')
->searchable()
->badge()
->sortable(),
])
->defaultSort('id', 'desc')
->filters([
@ -331,6 +334,16 @@ class DomainResource extends Resource
Tables\Actions\EditAction::make(),
])
->filters([
Tables\Filters\SelectFilter::make('status')
->options([
Domain::STATUS_ACTIVE => 'Active',
Domain::STATUS_BROKEN => 'Broken',
Domain::STATUS_SUSPENDED => 'Suspended',
Domain::STATUS_DEACTIVATED => 'Deactivated',
])
->label('Status'),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
// Tables\Actions\DeleteBulkAction::make(),