NotificationChannelTable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 19
c 1
b 0
f 1
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 23 1
1
<?php
2
3
namespace Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Tables;
4
5
use Filament\Actions\BulkActionGroup;
6
use Filament\Actions\DeleteAction;
7
use Filament\Actions\DeleteBulkAction;
8
use Filament\Actions\EditAction;
0 ignored issues
show
Bug introduced by
The type Filament\Actions\EditAction was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use Filament\Tables\Columns\IconColumn;
10
use Filament\Tables\Columns\TextColumn;
11
use Filament\Tables\Filters\TernaryFilter;
12
use Filament\Tables\Table;
13
14
class NotificationChannelTable
15
{
16
17
    public static function configure(Table $table): Table
18
    {
19
        return $table
20
            ->columns([
21
                TextColumn::make('title')
22
                    ->searchable(),
23
                TextColumn::make('type')
24
                    ->searchable(),
25
                IconColumn::make('is_active')
26
                    ->boolean(),
27
                TextColumn::make('created_at')
28
                    ->dateTime(),
29
            ])
30
            ->filters([
31
                TernaryFilter::make('is_active'),
32
            ])
33
            ->recordActions([
34
                EditAction::make(),
35
                DeleteAction::make(),
36
            ])
37
            ->toolbarActions([
38
                BulkActionGroup::make([
39
                    DeleteBulkAction::make(),
40
                ]),
41
            ]);
42
    }
43
44
}
45