This commit is contained in:
2025-11-13 00:13:29 +05:00
parent 7bdd5243bd
commit 31ab39b21c
8 changed files with 246 additions and 212 deletions

View File

@@ -31,6 +31,14 @@ class CardOrdersTable
->label(__('ID'))
->searchable(),
TextColumn::make('status')
->label(__('Status'))
->color(OrderStatusRepository::statusColorMatching())
->formatStateUsing(fn (string $state) => OrderStatusRepository::statusFormatted($state))
->badge()
->sortable()
->searchable(),
TextColumn::make('cardState.name')
->label(__('Reason'))
->searchable(),
@@ -69,14 +77,6 @@ class CardOrdersTable
->label(__('Phone'))
->searchable(),
TextColumn::make('status')
->label(__('Status'))
->color(OrderStatusRepository::statusColorMatching())
->formatStateUsing(fn (string $state) => OrderStatusRepository::statusFormatted($state))
->badge()
->sortable()
->searchable(),
TextColumn::make('updated_at')
->label(__('Updated At'))
->dateTime()