Added module list file name

This commit is contained in:
dhanabalan
2025-10-10 15:25:47 +05:30
parent 9306a476f9
commit df4bd9874f
2 changed files with 87 additions and 18 deletions

View File

@@ -28,24 +28,33 @@ class ModuleListResource extends Resource
return $form
->schema([
Section::make('')
->schema([
Forms\Components\TextInput::make('module_name')
->label('Module Name')
->required(),
Forms\Components\TextInput::make('dashboard_name')
->label('DashBoard Name')
->required(),
Forms\Components\TextInput::make('filter_name')
->label('Filter Name')
->required(),
Forms\Components\Hidden::make('created_by')
->label('Created By')
->default(Filament::auth()->user()?->name),
Forms\Components\Hidden::make('updated_by')
->label('Updated By')
->default(Filament::auth()->user()?->name),
])
->columns(3),
->schema([
Forms\Components\TextInput::make('module_name')
->label('Module Name')
->required(),
Forms\Components\TextInput::make('dashboard_name')
->label('DashBoard Name')
->required(),
Forms\Components\TextInput::make('filter_name')
->label('Filter Name')
->required(),
Forms\Components\TextInput::make('file_name')
->label('File Name')
->required()
->reactive()
->extraAttributes([
'x-data' => '{ value: "" }',
'x-model' => 'value',
'x-on:keydown.enter.prevent' => '$wire.process(value)',
]),
Forms\Components\Hidden::make('created_by')
->label('Created By')
->default(Filament::auth()->user()?->name),
Forms\Components\Hidden::make('updated_by')
->label('Updated By')
->default(Filament::auth()->user()?->name),
])
->columns(4),
]);
}