Table display via card or similar
Hello everyone,
I'm using a MapTableWidget component in my frontend theme for users, to display the table of the created models I'm using this function:
protected function getTableColumns(): array
{
return [
Tables\Columns\TextColumn::make('name')
->searchable(),
Tables\Columns\TextColumn::make('priority.name')
->searchable(),
Tables\Columns\TextColumn::make('type.name')
->searchable(),
Tables\Columns\TextColumn::make('latitude')
->searchable(),
Tables\Columns\TextColumn::make('longitude')
->searchable(),
SpatieMediaLibraryImageColumn::make('images')
->collection('ticket'),
];
}
which displays a normal table to me.
I would like to view the table in a more pleasant way, perhaps with two cards per row, where inside I can view all the fields of the model,
do you have any suggestions or examples?
Thanks in advance0 Replies