syntax error, unexpected identifier "Stat", expecting "function" or "const"

I am trying to make a widget on my materials resource page that shows the total number of materials in the table. I am unsure why it is not expecting
Stat


<?php

namespace App\Filament\Resources\MaterialsResource\Widgets;

use Filament\Widgets\Widget;
use Filament\Widgets\StatsOverviewWidget\Stat;
use Filament\Widgets\StatsOverviewWidget\Stat;
use Illuminate\Database\Eloquent\Model;


class MaterialsWidget extends Widget
{
    use ExposesTableToWidgets;
    use InteractsWithPageTable;


    protected function getTablePage(): string
    {
        return ListMaterials::class;
    }

    Stat::make('Total Materials', $this->getPageTableRecords()->count()),

    protected static string $view = 'filament.resources.materials-resource.widgets.materials-widget';
}
Was this page helpful?