<?php

declare(strict_types=1);

namespace App\Filament\Pages;

use App\Filament\Widgets\DepartmentDistributionChart;
use App\Filament\Widgets\HrStatsOverviewWidget;
use App\Filament\Widgets\MonthlyHiringChart;
use App\Filament\Widgets\MonthlyLeaveChart;
use App\Filament\Widgets\RecentReportsWidget;
use App\Filament\Widgets\UpcomingBirthdaysWidget;
use App\Filament\Widgets\UpcomingLeaveWidget;
use Filament\Pages\Dashboard as BaseDashboard;

class Dashboard extends BaseDashboard
{
    /**
     * @return array<class-string>
     */
    public function getWidgets(): array
    {
        return [
            HrStatsOverviewWidget::class,
            RecentReportsWidget::class,
            UpcomingBirthdaysWidget::class,
            UpcomingLeaveWidget::class,
            MonthlyHiringChart::class,
            MonthlyLeaveChart::class,
            DepartmentDistributionChart::class,
        ];
    }

    public function getColumns(): int | array
    {
        return [
            'default' => 1,
            'md' => 2,
            'xl' => 3,
        ];
    }
}
