Add info list to Page (with no resource)

I've read through the docos ...

i've created a page with no resource and edited the pages/page.php like so

<?php

namespace App\Filament\App\Pages;

use Filament\Infolists\Components\TextEntry;
use Filament\Infolists\Infolist;
use Filament\Pages\Page;

class bpa extends Page
{
    protected static ?string $navigationIcon = 'heroicon-o-document-text';

    protected static string $view = 'filament.app.pages.bpa';

    public static function infolist(Infolist $infolist): Infolist
    {
        return $infolist
        ->state([
            'name' => 'MacBook Pro',
            'category' => [
                'name' => 'Laptops',
            ],
            // ...
        ])
        ->schema([
            TextEntry::make('name'),
            TextEntry::make('category.name'),
            // ...
        ]);
    }
}
but this isnt displaying, i get the nav link fine thou
Was this page helpful?