defaultSort('last_name') ->columns([ TextColumn::make('last_name') ->label('Name') ->formatStateUsing(fn (Guest $record): string => "{$record->last_name}, {$record->first_name}") ->searchable(['first_name', 'last_name']) ->sortable(), TextColumn::make('email')->label('E-Mail')->searchable(), TextColumn::make('phone')->label('Telefon')->placeholder('–'), TextColumn::make('city')->label('Ort')->placeholder('–'), TextColumn::make('bookings_count')->label('Buchungen')->counts('bookings')->sortable(), TextColumn::make('created_at')->label('Seit')->date('m/Y')->sortable(), ]) ->recordActions([ EditAction::make(), ]); } }