diff --git a/app/Filament/Resources/ProductionOrderResource.php b/app/Filament/Resources/ProductionOrderResource.php index e1730ea..e7f8f80 100644 --- a/app/Filament/Resources/ProductionOrderResource.php +++ b/app/Filament/Resources/ProductionOrderResource.php @@ -95,7 +95,7 @@ class ProductionOrderResource extends Resource return ($userHas && strlen($userHas) > 0) ? optional(ProductionOrder::where('plant_id', $userHas)->latest()->first())->item_id : optional(ProductionOrder::latest()->first())->item_id; }) ->required() - ->afterStateUpdated(function ($state, callable $set) { + ->afterStateUpdated(function ($state, callable $set, $get) { $set('quantity', null); $set('show_extra_fields', false); $set('start_date', null); @@ -291,6 +291,11 @@ class ProductionOrderResource extends Resource ->searchable() ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('print_status') + ->label('Status') + ->searchable() + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('created_at') ->label('Created At') ->dateTime()