© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Tim

Inline Summaries

Hello,

I was wondering if there was a way to use the summeriser for tables in the row itself.

in my app I have 2 Models

Army.php and Unit.php

Armies have many Units and Units have 2 columns I want
points
points
and
cost
cost


I can get a summary at the bottom of the table for the total number of points or the total cost, but can I get one in the table row itself?

I'd like the Units column to say "Total Points" with a value of 165.

My table function

public static function table(Table $table): Table
{
  return $table
      ->columns([
          TextColumn::make('name'),
          TextColumn::make('units.points')
      ])
      ->filters([
          //
      ])
      ->actions([
          Tables\Actions\ViewAction::make(),
          Tables\Actions\EditAction::make(),
      ])
      ->bulkActions([
          Tables\Actions\BulkActionGroup::make([
              Tables\Actions\DeleteBulkAction::make(),
          ]),
      ]);
}
public static function table(Table $table): Table
{
  return $table
      ->columns([
          TextColumn::make('name'),
          TextColumn::make('units.points')
      ])
      ->filters([
          //
      ])
      ->actions([
          Tables\Actions\ViewAction::make(),
          Tables\Actions\EditAction::make(),
      ])
      ->bulkActions([
          Tables\Actions\BulkActionGroup::make([
              Tables\Actions\DeleteBulkAction::make(),
          ]),
      ]);
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add summaries to exports
FilamentFFilament / ❓┊help
2y ago
Summaries in filtered table
FilamentFFilament / ❓┊help
2y ago
Custom query in summaries
FilamentFFilament / ❓┊help
3y ago
Inline placeholder
FilamentFFilament / ❓┊help
3y ago