Possible to replace dashboard view?

Is it possible to replace the dashboard view? I followed the instructions in the docs for customizing it, adding the page, etc., and in that class I'm rendering a view I added at resources/views/filament/pages/dashboard.blade.php. However, when I do that the page renders without the application shell. No sidebar, no topbar, it's basically just replacing everything with my dashboard file. I'm assuming I would have to publish the dashboard view and then modify it from there, which I'm not wild about doing. I'm ultimately trying to accomplish something like the attached image, which is on an existing livewire app I'm wanting to rebuild in filament.
No description
3 Replies
toeknee
toeknee10mo ago
The attached is just 3 widgets, simply customise the dashboard page in /Filament/Pages/Dashboard.php And then build 3 widgets for that for them to render, then set the page colspan to be 3
Jon Mason
Jon Mason10mo ago
the app actually has a theoretically unlimited number of these cards, so it's not just like there are 3. I would need to have a foreach loop to display each card (they're the same card, just repeated). Is a widget still the right approach in that situation?
awcodes
awcodes10mo ago
The shell comes from the filament page blade component. Make sure you're including that in your dashboard.blade.php file. here's the core page for reference.
<x-filament-panels::page class="fi-dashboard-page">
<x-filament-widgets::widgets
:columns="$this->getColumns()"
:data="$this->getWidgetData()"
:widgets="$this->getVisibleWidgets()"
/>
</x-filament-panels::page>
<x-filament-panels::page class="fi-dashboard-page">
<x-filament-widgets::widgets
:columns="$this->getColumns()"
:data="$this->getWidgetData()"
:widgets="$this->getVisibleWidgets()"
/>
</x-filament-panels::page>