mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update DomainResource.php
This commit is contained in:
parent
d7b4206599
commit
b80f6d04ca
1 changed files with 14 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue