This commit is contained in:
2025-10-29 18:12:00 +05:00
parent 9ba3a6e623
commit 64dc80e069
5 changed files with 61 additions and 51 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Filament\Clusters\Cards\CardOrders\Tables;
use App\Modules\OrderStatus\Repositories\OrderStatusRepository;
use App\Modules\Region\Repositories\RegionRepository;
use Filament\Actions\BulkActionGroup;
use Filament\Actions\DeleteBulkAction;
use Filament\Actions\EditAction;
@@ -19,64 +21,58 @@ class CardOrdersTable
return $table
->columns([
TextColumn::make('unique_id')
->label(__('ID'))
->searchable(),
TextColumn::make('cardState.name')
->label(__('Reason'))
->searchable(),
TextColumn::make('cardType.name')
->label(__('Card type'))
->searchable(),
TextColumn::make('region')
->searchable(),
TextColumn::make('branch.name')
->searchable(),
TextColumn::make('customer_name')
->searchable(),
TextColumn::make('customer_surname')
->searchable(),
TextColumn::make('customer_patronic_name')
->searchable(),
TextColumn::make('born_at')
->date()
->sortable(),
TextColumn::make('old_surname')
->searchable(),
TextColumn::make('citizenship')
->searchable(),
TextColumn::make('passport_serie')
->searchable(),
TextColumn::make('passport_id')
->searchable(),
TextColumn::make('passport_given_at')
->date()
->sortable(),
TextColumn::make('passport_given_by')
->searchable(),
TextColumn::make('born_place')
->searchable(),
TextColumn::make('job_location')
->searchable(),
TextColumn::make('passport_address')
->searchable(),
TextColumn::make('real_address')
->searchable(),
TextColumn::make('phone')
->searchable(),
TextColumn::make('phone_additional')
->searchable(),
TextColumn::make('status')
->searchable(),
TextColumn::make('user.name')
->searchable(),
IconColumn::make('paid')
->boolean(),
TextColumn::make('created_at')
->label(__('Created At'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
->sortable(),
TextColumn::make('region')
->label(__('Region'))
->formatStateUsing(fn (string $state): string => RegionRepository::label($state))
->searchable(),
TextColumn::make('branch.name')
->label(__('Branch'))
->searchable(),
TextColumn::make('customer_name')
->label(__('Name'))
->searchable(),
TextColumn::make('customer_surname')
->label(__('Surname'))
->searchable(),
IconColumn::make('paid')
->label(__('Paid'))
->boolean(),
TextColumn::make('phone')
->label(__('Phone'))
->searchable(),
TextColumn::make('status')
->formatStateUsing(fn (string $state) => OrderStatusRepository::statusFormatted($state))
->searchable(),
TextColumn::make('updated_at')
->label(__('Updated At'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('deleted_at')
->label(__('Deleted At'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),