Skip to content

Commit 1949581

Browse files
markvaneijkclaude
andcommitted
Style opens and clicks columns as centered badges with matching status colors
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 84d3b25 commit 1949581

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Resources/MailResource.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,16 @@ public static function table(Table $table): Table
390390
->searchable(),
391391
TextColumn::make('opens')
392392
->label(__('Opens'))
393+
->badge()
394+
->color('info')
395+
->alignCenter()
393396
->tooltip(fn (Mail $record) => __('Last opened at :date', ['date' => $record->last_opened_at?->format('d-m-Y H:i')]))
394397
->sortable(),
395398
TextColumn::make('clicks')
396399
->label(__('Clicks'))
400+
->badge()
401+
->color('clicked')
402+
->alignCenter()
397403
->tooltip(fn (Mail $record) => __('Last clicked at :date', ['date' => $record->last_clicked_at?->format('d-m-Y H:i')]))
398404
->sortable(),
399405
TextColumn::make('sent_at')

0 commit comments

Comments
 (0)