From 05ac6c7712b4f1a4a8ae00f1ef8fd87e1c5d03bb Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 21 Jun 2025 10:36:31 +0530 Subject: [PATCH] Added block name column on report view --- app/Filament/Resources/ProductionLineStopResource.php | 5 ++++- app/Filament/Resources/ProductionPlanResource.php | 4 ++++ app/Filament/Resources/ProductionQuantityResource.php | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/ProductionLineStopResource.php b/app/Filament/Resources/ProductionLineStopResource.php index a868abe77..265ca57ac 100644 --- a/app/Filament/Resources/ProductionLineStopResource.php +++ b/app/Filament/Resources/ProductionLineStopResource.php @@ -45,7 +45,6 @@ class ProductionLineStopResource extends Resource public static function form(Form $form): Form { - return $form ->schema([ Section::make('') @@ -389,6 +388,10 @@ class ProductionLineStopResource extends Resource ->label('Line') ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('shift.block.name') + ->label('Block') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('shift.name') ->label('Shift') ->alignCenter() diff --git a/app/Filament/Resources/ProductionPlanResource.php b/app/Filament/Resources/ProductionPlanResource.php index da50b54ec..0afbe92af 100644 --- a/app/Filament/Resources/ProductionPlanResource.php +++ b/app/Filament/Resources/ProductionPlanResource.php @@ -541,6 +541,10 @@ class ProductionPlanResource extends Resource ->label('Line') ->alignCenter() ->sortable(),// ->searchable(), + Tables\Columns\TextColumn::make('shift.block.name') + ->label('Block') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('shift.name') ->label('Shift') ->alignCenter() diff --git a/app/Filament/Resources/ProductionQuantityResource.php b/app/Filament/Resources/ProductionQuantityResource.php index f887d8d66..612eed1c0 100644 --- a/app/Filament/Resources/ProductionQuantityResource.php +++ b/app/Filament/Resources/ProductionQuantityResource.php @@ -974,6 +974,10 @@ class ProductionQuantityResource extends Resource ->label('Line') ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('shift.block.name') + ->label('Block') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('shift.name') ->label('Shift') ->alignCenter()