-
-
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.
Merge pull request #203 from liberu-crm/sweep/Implement-Advertising-D…
…ashboard-Resource Implement Advertising Dashboard Resource
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
app/Filament/App/Resources/AdvertisingDashboardResource.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; | ||
|
||
use App\Filament\App\Resources\AdvertisingDashboardResource\Pages; | ||
use App\Models\AdvertisingAccount; | ||
use Filament\Forms; | ||
use Filament\Resources\Resource; | ||
use Filament\Tables; | ||
use Filament\Widgets\StatsOverviewWidget\Card; | ||
use Filament\Widgets\ChartWidget; | ||
|
||
class AdvertisingDashboardResource extends Resource | ||
{ | ||
protected static ?string $model = AdvertisingAccount::class; | ||
|
||
protected static ?string $navigationIcon = 'heroicon-o-presentation-chart-bar'; | ||
|
||
protected static ?string $navigationLabel = 'Advertising Dashboard'; | ||
|
||
public static function getWidgets(): array | ||
{ | ||
return [ | ||
Widgets\AdPerformanceWidget::class, | ||
Widgets\CampaignOverviewWidget::class, | ||
Widgets\PlatformComparisonWidget::class, | ||
]; | ||
} | ||
|
||
public static function getPages(): array | ||
{ | ||
return [ | ||
'index' => Pages\ViewAdvertisingDashboard::route('/'), | ||
]; | ||
} | ||
} |