-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af45c94
commit 317ac67
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/Filament/App/Resources/MailchimpCampaignResource/Pages/CreateMailchimpCampaign.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages; | ||
|
||
use App\Filament\App\Resources\MailchimpCampaignResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\CreateRecord; | ||
|
||
class CreateMailchimpCampaign extends CreateRecord | ||
{ | ||
protected static string $resource = MailchimpCampaignResource::class; | ||
} |
19 changes: 19 additions & 0 deletions
19
app/Filament/App/Resources/MailchimpCampaignResource/Pages/EditMailchimpCampaign.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages; | ||
|
||
use App\Filament\App\Resources\MailchimpCampaignResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\EditRecord; | ||
|
||
class EditMailchimpCampaign extends EditRecord | ||
{ | ||
protected static string $resource = MailchimpCampaignResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\DeleteAction::make(), | ||
]; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/Filament/App/Resources/MailchimpCampaignResource/Pages/ListMailchimpCampaigns.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages; | ||
|
||
use App\Filament\App\Resources\MailchimpCampaignResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\ListRecords; | ||
|
||
class ListMailchimpCampaigns extends ListRecords | ||
{ | ||
protected static string $resource = MailchimpCampaignResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\CreateAction::make(), | ||
]; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
app/Filament/App/Resources/MailchimpCampaignResource/Pages/ViewMailchimpCampaign.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages; | ||
|
||
use App\Filament\App\Resources\MailchimpCampaignResource; | ||
use Filament\Resources\Pages\Page; | ||
use Filament\Pages\Concerns\InteractsWithFormActions; | ||
|
||
class ViewMailchimpCampaign extends Page | ||
{ | ||
use InteractsWithFormActions; | ||
|
||
protected static string $resource = MailchimpCampaignResource::class; | ||
|
||
protected static string $view = 'filament.app.resources.mailchimp.view'; | ||
|
||
public function getTitle(): string | ||
{ | ||
return 'MailchimpCampaign '; | ||
} | ||
|
||
protected function getHeaderWidgets(): array | ||
{ | ||
return [ | ||
MailchimpCampaignResource::getWidgets()[0], | ||
]; | ||
} | ||
|
||
protected function getFooterWidgets(): array | ||
{ | ||
return [ | ||
MailchimpCampaignResource::getWidgets()[1], | ||
MailchimpCampaignResource::getWidgets()[2], | ||
]; | ||
} | ||
} |