Version 2.0
This commit is contained in:
@@ -23,16 +23,18 @@ class FeedbackTable
|
||||
->color('primary'),
|
||||
|
||||
TextColumn::make('title')
|
||||
->label(__('app.blade_title'))
|
||||
->searchable()
|
||||
->sortable()
|
||||
->weight('semibold')
|
||||
->limit(40),
|
||||
|
||||
TextColumn::make('customer.name')
|
||||
->label(__('app.widget_customer'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('customerProduct.product.name')
|
||||
TextColumn::make('contract.product.name')
|
||||
->label(__('app.product'))
|
||||
->placeholder(__('app.general'))
|
||||
->sortable()
|
||||
@@ -43,9 +45,12 @@ class FeedbackTable
|
||||
->badge()
|
||||
->formatStateUsing(fn (?string $state): string => $state ? \App\Enums\ContractType::from($state)->label() : '-')
|
||||
->color(fn (?string $state): string => match ($state) {
|
||||
'sale' => 'success',
|
||||
'lease' => 'info',
|
||||
'bcc' => 'warning',
|
||||
'deposit' => 'warning',
|
||||
'purchase' => 'success',
|
||||
'transfer' => 'info',
|
||||
'rental' => 'info',
|
||||
'self_business' => 'warning',
|
||||
'bcc' => 'danger',
|
||||
default => 'gray',
|
||||
})
|
||||
->placeholder('-')
|
||||
@@ -62,6 +67,7 @@ class FeedbackTable
|
||||
->toggleable(),
|
||||
|
||||
TextColumn::make('status')
|
||||
->label(__('app.status'))
|
||||
->badge()
|
||||
->color(fn(string $state): string => match ($state) {
|
||||
'pending' => 'warning',
|
||||
|
||||
Reference in New Issue
Block a user