From 6d3952dc7c41d2d0ab6b8e06579ea63124420171 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 14 Sep 2026 14:19:02 +0530 Subject: [PATCH] Added columns in item charcateristic resource page --- .../Resources/ItemCharacteristicResource.php | 904 +++++++++++++++--- 1 file changed, 757 insertions(+), 147 deletions(-) diff --git a/app/Filament/Resources/ItemCharacteristicResource.php b/app/Filament/Resources/ItemCharacteristicResource.php index 1354891..ef2936a 100644 --- a/app/Filament/Resources/ItemCharacteristicResource.php +++ b/app/Filament/Resources/ItemCharacteristicResource.php @@ -58,295 +58,893 @@ class ItemCharacteristicResource extends Resource }) ->required(), Forms\Components\TextInput::make('class') - ->label('CLASS'), + ->label('CLASS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zz1_cn_bill_ord') - ->label('ZZ1 CN BILL ORD'), + ->label('ZZ1 CN BILL ORD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_amps') - ->label('ZMM AMPS'), + ->label('ZMM AMPS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_brand') - ->label('ZMM BRAND'), + ->label('ZMM BRAND') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_degreeofprotection') - ->label('ZMM DEGREE OF PROTECTION'), + ->label('ZMM DEGREE OF PROTECTION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_delivery') - ->label('ZMM DELIVERY'), + ->label('ZMM DELIVERY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_dir_rot') - ->label('ZMM DIRECTION ROTATION'), + ->label('ZMM DIRECTION ROTATION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_discharge') - ->label('ZMM DISCHARGE'), + ->label('ZMM DISCHARGE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_discharge_max') - ->label('ZMM DISCHARGE MAX'), + ->label('ZMM DISCHARGE MAX') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_discharge_min') - ->label('ZMM DISCHARGE MIN'), + ->label('ZMM DISCHARGE MIN') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_duty') - ->label('ZMM DUTY'), + ->label('ZMM DUTY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_eff_motor') - ->label('ZMM EFF MOTOR'), + ->label('ZMM EFF MOTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_eff_pump') - ->label('ZMM EFF PUMP'), + ->label('ZMM EFF PUMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_frequency') - ->label('ZMM FREQUENCY'), + ->label('ZMM FREQUENCY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_head') - ->label('ZMM HEAD'), + ->label('ZMM HEAD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_heading') - ->label('ZMM HEADING'), + ->label('ZMM HEADING') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_head_max') - ->label('ZMM HEAD MAX'), + ->label('ZMM HEAD MAX') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_head_minimum') - ->label('ZMM HEAD MINIMUM'), + ->label('ZMM HEAD MINIMUM') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_idx_eff_mtr') - ->label('ZMM IDX EFF MTR'), + ->label('ZMM IDX EFF MTR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_idx_eff_pump') - ->label('ZMM IDX EFF PUMP'), + ->label('ZMM IDX EFF PUMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_kvacode') - ->label('ZMM KVACODE'), + ->label('ZMM KVACODE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_maxambtemp') - ->label('ZMM MAX AMB TEMP'), + ->label('ZMM MAX AMB TEMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_mincoolingflow') - ->label('ZMM MIN COOLING FLOW'), + ->label('ZMM MIN COOLING FLOW') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motorseries') - ->label('ZMM MOTOR SERIES'), + ->label('ZMM MOTOR SERIES') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motor_model') - ->label('ZMM MOTOR MODEL'), + ->label('ZMM MOTOR MODEL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_outlet') - ->label('ZMM OUTLET'), + ->label('ZMM OUTLET') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_phase') - ->label('ZMM PHASE'), + ->label('ZMM PHASE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pressure') - ->label('ZMM PRESSURE'), + ->label('ZMM PRESSURE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pumpflowtype') - ->label('ZMM PUMP FLOW TYPE'), + ->label('ZMM PUMP FLOW TYPE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pumpseries') - ->label('ZMM PUMP SERIES'), + ->label('ZMM PUMP SERIES') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pump_model') - ->label('ZMM PUMP MODEL'), + ->label('ZMM PUMP MODEL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_ratedpower') - ->label('ZMM RATED POWER'), + ->label('ZMM RATED POWER') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_region') - ->label('ZMM REGION'), + ->label('ZMM REGION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_servicefactor') - ->label('ZMM SERVICE FACTOR'), + ->label('ZMM SERVICE FACTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_servicefactormaximumamps') - ->label('ZMM SERVICE FACTOR MAXIMUM AMPS'), + ->label('ZMM SERVICE FACTOR MAXIMUM AMPS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_speed') - ->label('ZMM SPEED'), + ->label('ZMM SPEED') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_suction') - ->label('ZMM SUCTION'), + ->label('ZMM SUCTION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_suctionxdelivery') - ->label('ZMM SUCTION X DELIVERY'), + ->label('ZMM SUCTION X DELIVERY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_supplysource') - ->label('ZMM SUPPLY SOURCE'), + ->label('ZMM SUPPLY SOURCE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_temperature') - ->label('ZMM TEMPERATURE'), + ->label('ZMM TEMPERATURE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_thrustload') - ->label('ZMM THRUST LOAD'), + ->label('ZMM THRUST LOAD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_volts') - ->label('ZMM VOLTS'), + ->label('ZMM VOLTS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_wire') - ->label('ZMM WIRE'), + ->label('ZMM WIRE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_package') - ->label('ZMM PACKAGE'), + ->label('ZMM PACKAGE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pvarrayrating') - ->label('ZMM PV ARRAY RATING'), + ->label('ZMM PV ARRAY RATING') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isi') - ->label('ZMM ISI'), + ->label('ZMM ISI') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isimotor') - ->label('ZMM ISI MOTOR'), + ->label('ZMM ISI MOTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isipump') - ->label('ZMM ISI PUMP'), + ->label('ZMM ISI PUMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isipumpset') - ->label('ZMM ISI PUMP SET'), + ->label('ZMM ISI PUMP SET') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pumpset_model') - ->label('ZMM PUMP SET MODEL'), + ->label('ZMM PUMP SET MODEL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_stages') - ->label('ZMM STAGES'), + ->label('ZMM STAGES') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_headrange') - ->label('ZMM HEAD RANGE'), + ->label('ZMM HEAD RANGE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_overall_efficiency') - ->label('ZMM OVERALL EFFICIENCY'), + ->label('ZMM OVERALL EFFICIENCY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_connection') - ->label('ZMM CONNECTION'), + ->label('ZMM CONNECTION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_min_bore_size') - ->label('ZMM MIN BORE SIZE'), + ->label('ZMM MIN BORE SIZE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isireference') - ->label('ZMM ISI REFERENCE'), + ->label('ZMM ISI REFERENCE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_category') - ->label('ZMM CATEGORY'), + ->label('ZMM CATEGORY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_submergence') - ->label('ZMM SUBMERGENCE'), + ->label('ZMM SUBMERGENCE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_capacitorstart') - ->label('ZMM CAPACITOR START'), + ->label('ZMM CAPACITOR START') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_capacitorrun') - ->label('ZMM CAPACITOR RUN'), + ->label('ZMM CAPACITOR RUN') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_inch') - ->label('ZMM INCH'), + ->label('ZMM INCH') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motor_type') - ->label('ZMM MOTOR TYPE'), + ->label('ZMM MOTOR TYPE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_dismantle_direction') - ->label('ZMM DISMANTLE DIRECTION'), + ->label('ZMM DISMANTLE DIRECTION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_eff_ovrall') - ->label('ZMM OVERALL EFFICIENCY'), + ->label('ZMM OVERALL EFFICIENCY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_bodymoc') - ->label('ZMM BODY MOC'), + ->label('ZMM BODY MOC') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_rotormoc') - ->label('ZMM ROTOR MOC'), + ->label('ZMM ROTOR MOC') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_dlwl') - ->label('ZMM DLWL'), + ->label('ZMM DLWL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_inputpower') - ->label('ZMM INPUT POWER'), + ->label('ZMM INPUT POWER') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_imp_od') - ->label('ZMM IMP OD'), + ->label('ZMM IMP OD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_ambtemp') - ->label('ZMM AMBIENT TEMPERATURE'), + ->label('ZMM AMBIENT TEMPERATURE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_de') - ->label('ZMM DE'), + ->label('ZMM DE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_dischargerange') - ->label('ZMM DISCHARGE RANGE'), + ->label('ZMM DISCHARGE RANGE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_efficiency_class') - ->label('ZMM EFFICIENCY CLASS'), + ->label('ZMM EFFICIENCY CLASS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_framesize') - ->label('ZMM FRAME SIZE'), + ->label('ZMM FRAME SIZE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_impellerdiameter') - ->label('ZMM IMPELLER DIAMETER'), + ->label('ZMM IMPELLER DIAMETER') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_insulationclass') - ->label('ZMM INSULATION CLASS'), + ->label('ZMM INSULATION CLASS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_maxflow') - ->label('ZMM MAX FLOW'), + ->label('ZMM MAX FLOW') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_minhead') - ->label('ZMM MIN HEAD'), + ->label('ZMM MIN HEAD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_mtrlofconst') - ->label('ZMM MOTOR LOAD CONSTANT'), + ->label('ZMM MOTOR LOAD CONSTANT') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_nde') - ->label('ZMM NDE'), + ->label('ZMM NDE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_powerfactor') - ->label('ZMM POWER FACTOR'), + ->label('ZMM POWER FACTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_tagno') - ->label('ZMM TAGNO'), + ->label('ZMM TAGNO') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_year') - ->label('ZMM YEAR'), + ->label('ZMM YEAR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_laser_name') - ->label('ZMM LASER NAME'), + ->label('ZMM LASER NAME') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_beenote') - ->label('ZMM BEE NOTE'), + ->label('ZMM BEE NOTE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_beenumber') - ->label('ZMM BEE NUMBER'), + ->label('ZMM BEE NUMBER') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_beestar') - ->label('ZMM BEE STAR'), + ->label('ZMM BEE STAR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_logo_ce') - ->label('ZMM LOGO CE'), + ->label('ZMM LOGO CE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_codeclass') - ->label('ZMM CODE CLASS'), + ->label('ZMM CODE CLASS') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_colour') - ->label('ZMM COLOUR'), + ->label('ZMM COLOUR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_logo_cp') - ->label('ZMM LOGO CP'), + ->label('ZMM LOGO CP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grade') - ->label('ZMM GRADE'), + ->label('ZMM GRADE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grwt_pset') - ->label('ZMM GRWT PSET'), + ->label('ZMM GRWT PSET') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grwt_cable') - ->label('ZMM GRWT CABLE'), + ->label('ZMM GRWT CABLE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grwt_motor') - ->label('ZMM GRWT MOTOR'), + ->label('ZMM GRWT MOTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grwt_pf') - ->label('ZMM GRWT PF'), + ->label('ZMM GRWT PF') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_grwt_pump') - ->label('ZMM GRWT PUMP'), + ->label('ZMM GRWT PUMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isivalve') - ->label('ZMM ISIV ALVE'), + ->label('ZMM ISI VALVE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_isi_wc') - ->label('ZMM ISIV WC'), + ->label('ZMM ISI WC') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_labelperiod') - ->label('ZMM LABEL PERIOD'), + ->label('ZMM LABEL PERIOD') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_length') - ->label('ZMM LENGTH'), + ->label('ZMM LENGTH') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_license_cml_no') - ->label('ZMM LICENSE CML NO'), + ->label('ZMM LICENSE CML NO') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_mfgmonyr') - ->label('ZMM MFG MON YR'), + ->label('ZMM MFG MON YR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_modelyear') - ->label('ZMM MODEL YEAR'), + ->label('ZMM MODEL YEAR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motoridentification') - ->label('ZMM MOTOR IDENTIFICATION'), + ->label('ZMM MOTOR IDENTIFICATION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_newt_pset') - ->label('ZMM NEWT PSET'), + ->label('ZMM NEWT PSET') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_newt_cable') - ->label('ZMM NEWT CABLE'), + ->label('ZMM NEWT CABLE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_newt_motor') - ->label('ZMM NEWT MOTOR'), + ->label('ZMM NEWT MOTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_newt_pf') - ->label('ZMM NEWT PF'), + ->label('ZMM NEWT PF') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_newt_pump') - ->label('ZMM NEWT PUMP'), + ->label('ZMM NEWT PUMP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_logo_nsf') - ->label('ZMM LOGO NSF'), + ->label('ZMM LOGO NSF') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), + Forms\Components\TextInput::make('zmm_logo_eac') + ->label('ZMM LOGO EAC') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_packtype') - ->label('ZMM PACK TYPE'), + ->label('ZMM PACK TYPE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_panel') - ->label('ZMM PANEL'), + ->label('ZMM PANEL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_performance_factor') - ->label('ZMM PERFORMANCE FACTOR'), + ->label('ZMM PERFORMANCE FACTOR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_pumpidentification') - ->label('ZMM PUMP IDENTIFICATION'), + ->label('ZMM PUMP IDENTIFICATION') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_psettype') - ->label('ZMM PSET TYPE'), + ->label('ZMM PSET TYPE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_size') - ->label('ZMM SIZE'), + ->label('ZMM SIZE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_eff_ttl') - ->label('ZMM EFF TTL'), + ->label('ZMM EFF TTL') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_type') - ->label('ZMM TYPE'), + ->label('ZMM TYPE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_usp') - ->label('ZMM USP'), + ->label('ZMM USP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_operating_range') - ->label('ZMM OPERATING RANGE'), + ->label('ZMM OPERATING RANGE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_intake_air') - ->label('ZMM INTAKE AIR'), + ->label('ZMM INTAKE AIR') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_oxygen_transfer_rate') - ->label('ZMM OXYGEN TRANSFER RATE'), + ->label('ZMM OXYGEN TRANSFER RATE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_air_inlet_pipesize') - ->label('ZMM AIR INLET PIPESIZE'), + ->label('ZMM AIR INLET PIPESIZE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_sump_depth') - ->label('ZMM SUMP DEPTH'), + ->label('ZMM SUMP DEPTH') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_poles') - ->label('ZMM POLES'), + ->label('ZMM POLES') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motor_heading') - ->label('ZMM MOTOR HEADING'), + ->label('ZMM MOTOR HEADING') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_motor_speed') - ->label('ZMM MOTOR SPEED'), + ->label('ZMM MOTOR SPEED') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zqmm_qty') - ->label('ZMM QTY'), + ->label('ZQMM QTY') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), + Forms\Components\TextInput::make('zmm_operating_temperature') + ->label('ZMM OPERATING TEMPERATURE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), + Forms\Components\TextInput::make('zmm_axial_force') + ->label('ZMM AXIAL FORCE') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('mrp') - ->label('MRP'), + ->label('MRP') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_1') - ->label('ZMM 1'), + ->label('ZMM 1') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_2') - ->label('ZMM 2'), + ->label('ZMM 2') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_3') - ->label('ZMM 3'), + ->label('ZMM 3') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_4') - ->label('ZMM 4'), + ->label('ZMM 4') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_5') - ->label('ZMM 5'), + ->label('ZMM 5') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_6') - ->label('ZMM 6'), + ->label('ZMM 6') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_7') - ->label('ZMM 7'), + ->label('ZMM 7') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_8') - ->label('ZMM 8'), + ->label('ZMM 8') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_9') - ->label('ZMM 9'), + ->label('ZMM 9') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_10') - ->label('ZMM 10'), + ->label('ZMM 10') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_11') - ->label('ZMM 11'), + ->label('ZMM 11') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_12') - ->label('ZMM 12'), + ->label('ZMM 12') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_13') - ->label('ZMM 13'), + ->label('ZMM 13') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_14') - ->label('ZMM 14'), + ->label('ZMM 14') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\TextInput::make('zmm_15') - ->label('ZMM 15'), + ->label('ZMM 15') + ->reactive() + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\Hidden::make('created_by') ->label('Created By') ->default(Filament::auth()->user()?->name), @@ -772,11 +1370,11 @@ class ItemCharacteristicResource extends Resource ->alignCenter() ->sortable(), Tables\Columns\TextColumn::make('zmm_isivalve') - ->label('ZMM ISIV ALVE') + ->label('ZMM ISI VALVE') ->alignCenter() ->sortable(), Tables\Columns\TextColumn::make('zmm_isi_wc') - ->label('ZMM ISIV WC') + ->label('ZMM ISI WC') ->alignCenter() ->sortable(), Tables\Columns\TextColumn::make('zmm_labelperiod') @@ -827,6 +1425,10 @@ class ItemCharacteristicResource extends Resource ->label('ZMM LOGO NSF') ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('zmm_logo_eac') + ->label('ZMM LOGO EAC') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('zmm_packtype') ->label('ZMM PACK TYPE') ->alignCenter() @@ -899,6 +1501,14 @@ class ItemCharacteristicResource extends Resource ->label('ZMM QTY') ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('zmm_operating_temperature') + ->label('ZMM OPERATING TEMPERATURE') + ->alignCenter() + ->sortable(), + Tables\Columns\TextColumn::make('zmm_axial_force') + ->label('ZMM AXIAL FORCE') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('mrp') ->label('MRP') ->alignCenter()