Version 2.0

This commit is contained in:
2026-05-12 09:23:05 +00:00
parent f2bc048219
commit f1b68e5e78
34 changed files with 564 additions and 283 deletions

View File

@@ -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',