Lists and columns
A list is a controller with a managed model and a column definition: links, badges, formatted values and sortable headers, all on the database.
- Click a column header to sort, again to reverse.
- Columns can be optional (off by default) or only in the export.
- Filters, sort and page are kept in the URL, the list reloads with htmx.
Try it: log in with the demo account
Email demo@frontdesk-demo.test · Password Try-Frontdesk-2026
Everyone shares this account. You may change anything – all data is reset every night.
The code
app/src/Controllers/ProjectController.php – defineColumns()
whole file
protected function defineColumns(): ColumnCollection
{
return ColumnCollection::create()
->make('Title', 'Project')->link('view/{ID}')->sortable()->end()
->make('Client.Name', 'Client')->sortable('Client.Name')->end()
->make('StatusLabel', 'Status')->type('badge')->sortable('Status')->end()
->make('Type.Title', 'Type')->end()
->make('Tags', 'Tags')->end()
->make('Budget', 'Budget')
->format(fn ($value) => number_format((float) $value, 0, '.', ',') . ' €')
->sortable()->width(12)->end()
->make('StartDate', 'Start')
->format(fn ($value) => $value ? date('d M Y', (int) strtotime((string) $value)) : '')
->sortable()->end()
->make('Manager.Name', 'Manager')->sortable('Manager.Surname')->end()
->make('Progress', 'Progress')
->format(fn ($value) => $value === null ? '–' : $value . ' %')
->optional()->end()
->make('InternalNote', 'Internal note')->exportOnly()->end()
->lastViewed('Last viewed')->optional()->end();
}