Skip to content

Commit

Permalink
Merge pull request #203 from liberu-crm/sweep/Implement-Advertising-D…
Browse files Browse the repository at this point in the history
…ashboard-Resource

Implement Advertising Dashboard Resource
  • Loading branch information
curtisdelicata authored Oct 16, 2024
2 parents d19ffbe + f145bac commit 2f5c3b2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions app/Filament/App/Resources/AdvertisingDashboardResource.php
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('/'),
];
}
}

0 comments on commit 2f5c3b2

Please sign in to comment.