Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ciosper committed Aug 7, 2024
2 parents cfb982e + e60692c commit 3770784
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
11 changes: 11 additions & 0 deletions Filament/Resources/ContactResource/Pages/ListContacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
use Modules\Notify\Filament\Resources\ContactResource;
use Modules\UI\Enums\TableLayoutEnum;
use Modules\UI\Filament\Actions\Table\TableLayoutToggleTableAction;

class ListContacts extends ListRecords
{
protected static string $resource = ContactResource::class;

public TableLayoutEnum $layoutView = TableLayoutEnum::GRID;

protected function getTableHeaderActions(): array
{
return [
TableLayoutToggleTableAction::make(),
];
}

protected function getHeaderActions(): array
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
use Modules\Notify\Filament\Resources\NotificationResource;
use Modules\UI\Enums\TableLayoutEnum;
use Modules\UI\Filament\Actions\Table\TableLayoutToggleTableAction;

class ListNotifications extends ListRecords
{
protected static string $resource = NotificationResource::class;

public TableLayoutEnum $layoutView = TableLayoutEnum::GRID;

protected function getTableHeaderActions(): array
{
return [
TableLayoutToggleTableAction::make(),
];
}

protected function getHeaderActions(): array
{
return [
Expand Down
11 changes: 11 additions & 0 deletions Filament/Resources/NotifyThemeResource/Pages/ListNotifyThemes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@
use Filament\Pages\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
use Modules\Notify\Filament\Resources\NotifyThemeResource;
use Modules\UI\Enums\TableLayoutEnum;
use Modules\UI\Filament\Actions\Table\TableLayoutToggleTableAction;

class ListNotifyThemes extends ListRecords
{
protected static string $resource = NotifyThemeResource::class;

public TableLayoutEnum $layoutView = TableLayoutEnum::GRID;

protected function getTableHeaderActions(): array
{
return [
TableLayoutToggleTableAction::make(),
];
}

protected function getHeaderActions(): array
{
return [
Expand Down
4 changes: 0 additions & 4 deletions Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @mixin \Eloquent
*/
class Notification extends DatabaseNotification
Expand Down

0 comments on commit 3770784

Please sign in to comment.