after production line stop reason column remove
This commit is contained in:
@@ -1,26 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Pages\Dashboard as BaseDashboard;
|
||||
use App\Models\Line;
|
||||
|
||||
class Dashboard extends \Filament\Pages\Dashboard
|
||||
class Dashboard extends BaseDashboard
|
||||
{
|
||||
use HasFiltersForm;
|
||||
use HasFiltersForm;
|
||||
|
||||
public function filtersForm(Form $form): Form
|
||||
{
|
||||
return $form->schema([
|
||||
Select::make('Plant')
|
||||
->options(\DB::table('plants')->pluck('name', 'name')) // Fetch plant names
|
||||
->label('Select Plant'),
|
||||
public function filtersForm(Form $form): Form
|
||||
{
|
||||
return $form->schema([
|
||||
// Select::make('plant_id')
|
||||
// ->relationship('plant', 'name')
|
||||
// ->required()
|
||||
// ->reactive(),
|
||||
|
||||
Select::make('Line')
|
||||
->options(\DB::table('lines')->pluck('name', 'name')) // Fetch line names
|
||||
->label('Select Line'),
|
||||
]);
|
||||
}
|
||||
// Select::make('line_id')
|
||||
// ->relationship('line', 'name')
|
||||
// ->required()
|
||||
// ->options(fn (callable $get) =>
|
||||
// Line::where('plant_id', $get('plant_id'))->pluck('name', 'id')
|
||||
// )
|
||||
// ->reactive()
|
||||
// ->afterStateUpdated(fn ($set) => $set('line_id', null)),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user