I'm also considering creating a resources page for a shopping cart and implementing an action to display the order details.
May 9, 2024
1
Level 5
Add Table To Custom Page Filament
correctlyHi , i have created a page to list the carts that comes from orders , carts had a pivot table called cart_order whatever i want to create a new page and list the cart_order or any data i want , I have read the documentation , and i just create a page
art make:filament-page Carts
and now i have an empty page , i searched at the docs but all i found is about title and color and label , and if i understand correctly , the page created as live-wire component page to write a code into , so i can't do
class Carts extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.admin.pages.carts';
public static function table(Table $table): Table
{
return $table
->columns([
])
->filters([
//
]);
}
public static function getNavigationLabel(): string
{
return __('carts_of_clients');
}
}
so there's anyway to make a page with listing a table without create a resource ?
Please or to participate in this conversation.