From 53b64c11e0793b562bd453778437cd5f41e6c14c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 28 Oct 2026 15:32:37 +0530 Subject: [PATCH] Added tool gadgets and serial number in visitor entry resource page --- .../Resources/VisitorEntryResource.php | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/VisitorEntryResource.php b/app/Filament/Resources/VisitorEntryResource.php index aba3e8c1..4aeff6ab 100644 --- a/app/Filament/Resources/VisitorEntryResource.php +++ b/app/Filament/Resources/VisitorEntryResource.php @@ -116,7 +116,7 @@ class VisitorEntryResource extends Resource } }), Forms\Components\Select::make('dealer') - ->label('Dealer Visit') + ->label('Dealer Visit / Special Guest') ->options( DealerVisitPlan::where('status', 'Planned') ->whereDate('visit_plan_date', today()) @@ -350,6 +350,10 @@ class VisitorEntryResource extends Resource ]) ->reactive() ->placeholder('Select Mode of Travel'), + Forms\Components\TextInput::make('tool_gadget') + ->label('Tools & Gadgets'), + Forms\Components\TextInput::make('serial_number') + ->label('Serial Number'), Forms\Components\DateTimePicker::make('in_time') ->label('In Time') ->required() @@ -368,10 +372,10 @@ class VisitorEntryResource extends Resource ->columnSpanFull(), Forms\Components\Hidden::make('photo'), Forms\Components\Hidden::make('created_by') - ->label('created_by') + ->label('Created By') ->default(Filament::auth()->user()?->name), Forms\Components\Hidden::make('updated_by') - ->label('updated_by') + ->label('Updated By') ->default(Filament::auth()->user()?->name), ]); } @@ -466,6 +470,16 @@ class VisitorEntryResource extends Resource ->searchable() ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('tool_gadget') + ->label('Tools & Gadgets') + ->searchable() + ->alignCenter() + ->sortable(), + Tables\Columns\TextColumn::make('serial_number') + ->label('Serial Number') + ->searchable() + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('in_time') ->label('In Time') ->searchable()