<?php

namespace App\Filament\Pages;

use Filament\Pages\Page;
use App\Filament\Widgets\LiveTrafficWidget;
use App\Filament\Widgets\ConversionFunnelWidget;
use App\Filament\Widgets\ProductPerformanceWidget;
use App\Filament\Widgets\MarketingAttributionWidget;
use App\Filament\Widgets\CustomerBehaviorWidget;

class Reports extends Page
{
    protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-presentation-chart-bar';

    protected static ?string $title = 'Analytics';

    protected static ?string $navigationLabel = 'Analytics';

    protected static string|\UnitEnum|null $navigationGroup = 'Analytics';

    protected static ?int $navigationSort = 1;

    protected function getHeaderWidgets(): array
    {
        return [
            LiveTrafficWidget::class,
            ConversionFunnelWidget::class,
            ProductPerformanceWidget::class,
            MarketingAttributionWidget::class,
            CustomerBehaviorWidget::class,
        ];
    }

    public function getHeaderWidgetsColumns(): int | array
    {
        return 1;
    }
}
