© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Matthew

White screen when trying to load a widget to a blade file

So I have a blade file and im trying to put load a widget within it. However, I get a blank screen and an error in the console. Any ideas?

<?php

namespace App\Filament\App\Widgets;

use Filament\Widgets\Widget;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;

class NewUserCount extends BaseWidget
{
    protected static string $view = 'filament.app.widgets.new-user-count';

    protected function getStats(): array
    {
        return [
            Stat::make('Unique views', '192.1k'),
            Stat::make('Bounce rate', '21%'),
            Stat::make('Average time on page', '3:12'),
        ];
    }
}
<?php

namespace App\Filament\App\Widgets;

use Filament\Widgets\Widget;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;

class NewUserCount extends BaseWidget
{
    protected static string $view = 'filament.app.widgets.new-user-count';

    protected function getStats(): array
    {
        return [
            Stat::make('Unique views', '192.1k'),
            Stat::make('Bounce rate', '21%'),
            Stat::make('Average time on page', '3:12'),
        ];
    }
}
image.png
image.png
Solution
Ohh, i see. It should be made in Livewire directory
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Widget blade, white screen
FilamentFFilament / ❓┊help
3y ago
Adding a resource widget to an infolist viewentry/blade file
FilamentFFilament / ❓┊help
3y ago
How to load asynchronously a widget ?
FilamentFFilament / ❓┊help
3y ago
Custom widget, passing variables to blade
FilamentFFilament / ❓┊help
2y ago