Add Soft Delete UI (Restore/ForceDelete) + Update docs (AGENTS, ASSESSMENT, WORKFLOW)
This commit is contained in:
@@ -2,7 +2,13 @@
|
||||
|
||||
namespace App\Filament\Resources\Payments\Tables;
|
||||
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Actions\ForceDeleteAction;
|
||||
use Filament\Actions\RestoreAction;
|
||||
use Filament\Tables;
|
||||
use Filament\Tables\Filters\TrashedFilter;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class PaymentsTable
|
||||
@@ -99,6 +105,17 @@ class PaymentsTable
|
||||
->when($data['from'], fn ($q) => $q->whereDate('paid_date', '>=', $data['from']))
|
||||
->when($data['to'], fn ($q) => $q->whereDate('paid_date', '<=', $data['to']));
|
||||
}),
|
||||
TrashedFilter::make(),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
RestoreAction::make(),
|
||||
ForceDeleteAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('paid_date', 'desc');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user